From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id A6kLA0r24GnVQhwAWB0awg (envelope-from ) for ; Thu, 16 Apr 2026 10:46:34 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=NGprp8DW; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id E54351E0B1; Thu, 16 Apr 2026 10:46:33 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 2063A1E0B1 for ; Thu, 16 Apr 2026 10:46:33 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id D047A4BAE7C7 for ; Thu, 16 Apr 2026 14:46:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D047A4BAE7C7 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=NGprp8DW Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 7B3B44BA23CF for ; Thu, 16 Apr 2026 14:46:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7B3B44BA23CF Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7B3B44BA23CF Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776350764; cv=none; b=M6Q+AyeJMftOyR4FtZKnEOJcdBItmOZV0cwDgxLgWyi2hj7JrrAVvtnGGBTSd3VfKUnQDF3w8WEqr3g88hYwb9j1FFNelpeZttlVS4iw3wYf3kT/eMAyGwJPfuq2M2rbweIqItGLGJ7AfH2mU3sDmBVRWGZimvvXxNxdYrxEJ84= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776350764; c=relaxed/simple; bh=ntrTltXfqtNOf5JJUMlUTYmRiu6G5kdASmhRgSmYUlk=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=cIZFAJdatwv58ahGpH41n0pQdT9+1mGE6nIrjKmR2BiQgPy9x9W6GDyi31QbHVCczAMwrjareL4e+yvxP7pJTABI/Eh+nnajyw07YwkIWm7L9VofDjIXMdLIqRJuUhLSe6CWaw53UyyvTUrcXa27b2EqaaL2CpMd+Zc3OXboWsw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7B3B44BA23CF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1776350764; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ccwN9gbenR87tcerQF0p4Y+DAmH104o5BWKQYPMoPO8=; b=NGprp8DWTqWVCaa4NwgONhZKcnq5Or1w9M69dmmMm8nOV2b2Svbb6AHK5e72o1FysYNDTa FYt0+9cfnIaPxARj8NTudsibHoRjYNIzV1IOy5hkyury9s7mlfNyilF1Tigfdm0rgXm+3h hlSEd+FDK3hUgGhrz45QTBsTtjtrG0g= Received: from mail-vk1-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-563-IUDWKvbXPPawoOl5ZyiRyA-1; Thu, 16 Apr 2026 10:46:03 -0400 X-MC-Unique: IUDWKvbXPPawoOl5ZyiRyA-1 X-Mimecast-MFC-AGG-ID: IUDWKvbXPPawoOl5ZyiRyA_1776350762 Received: by mail-vk1-f198.google.com with SMTP id 71dfb90a1353d-56ef11518d3so16378495e0c.3 for ; Thu, 16 Apr 2026 07:46:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776350762; x=1776955562; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ccwN9gbenR87tcerQF0p4Y+DAmH104o5BWKQYPMoPO8=; b=PtWKYYivMVI4/ty0lWPzOdVzEKjUrgx3fUjhUuzjNre8fzgXLK528543vuDfOvvJI4 D7GcykU/lMeonB5y3BIhRZikH8q0uuw5itaKsC2O6nypTfpeq/3HpTEWu8Lvc4LlCiVE cJB/ud2rvdwKMsrAu9VB5eronFoGbOgP5GQnDXLZU6Du1eB6zxQi42FChQhkQRYnlGlv ttLKHHZu4AlrP6Ak24/5o5ui34NFQXRO0AkWibhaFXertlzwZKc5l8vMmf5pGCGPjgWx 5fvIkYKcs/2dfTYSkjbc7GmNZ+TM5hZudkXIX2xIsFVUi0He3lpLL9RFpXXW5d35Ht6L 37kw== X-Forwarded-Encrypted: i=1; AFNElJ8ozKsJjeoNUh08KhRMHwACuZhYed9OFIn0iX+tu1UZViVmaIYuo8070TOZM1YLWcG+aO5fuRl4BzznVg==@sourceware.org X-Gm-Message-State: AOJu0Yy0K8eDWVxXexF8QejD2i2KrWl8haKfEp/b/uxO3c+7NKKewcJO 1Ds+0L2IjDBp0rmMdBTqzM6lGOrsIsNM955jwDtHhMLnbvxY/2hj04qDV8CpV4DZKehtLgyLutj p52iem2YA6ViTIxlx9ICENuIGimkn4zZWs6YgFQsHmBND09n276pKXJARNSzaCPfwYnW7Ef8= X-Gm-Gg: AeBDietE6Z+kDEhs28ftVmmsgtKhA2T1GYtyErubl2q+Hp840mXax86vlp5GSkDJjSY BUYf+pTxgmz47CN/B6QDiRCBeQcsNQo7yuJ2810zjrgWt7HOMf6CyJjl3yjNDbpQd/WR08Qbdgo zd7hP+OyLXh9jrwvCZrpVEwGvbKbmTUQRh9XT7PzDn/a95C9ppx+QGRxJxkY6tFq2sJxnboTJKh Y0+haWsin+WZawXAuu33FrHLvvLXV6z73mEecu2MF5fHVTZR86v2uviD05hSyHLToVxfEZZ+DHT StybIkhZqO0FfX6Cc6330a9tzgsSm54iBay8JE6BwAX68g+bxGk2OwgJQSx9eE7AFs5+3/Due+i /ZcA75Fn5ggBJx3kxQoa9fQ273+ytnOs= X-Received: by 2002:a05:6122:2a0c:b0:56b:5893:d042 with SMTP id 71dfb90a1353d-56f3bd47a0fmr14118226e0c.12.1776350761992; Thu, 16 Apr 2026 07:46:01 -0700 (PDT) X-Received: by 2002:a05:6122:2a0c:b0:56b:5893:d042 with SMTP id 71dfb90a1353d-56f3bd47a0fmr14118201e0c.12.1776350761545; Thu, 16 Apr 2026 07:46:01 -0700 (PDT) Received: from ?IPV6:2804:14d:8084:993e::75d? ([2804:14d:8084:993e::75d]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-56fa236ad9asm30186e0c.13.2026.04.16.07.45.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Apr 2026 07:46:00 -0700 (PDT) Message-ID: <9e2fcd13-b793-4d01-9263-83f566ef8db1@redhat.com> Date: Thu, 16 Apr 2026 11:45:56 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] testsuite: Skip fission-dw-form-strx with clang To: Bratislav Filipovic , gdb-patches@sourceware.org References: <20260416140306.1556274-1-bfilipov@amd.com> From: Guinevere Larsen In-Reply-To: <20260416140306.1556274-1-bfilipov@amd.com> X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: sZqNxa1ZHTz3mJFGNbRI-A8ub6SbsR12CHy4tOidfqg_1776350762 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org On 4/16/26 11:00 AM, Bratislav Filipovic wrote: > Clang's integrated assembler incorrectly sets the SHF_EXCLUDE flag > on .debug_*.dwo sections when assembling DWARF fission debug info. > This causes all linkers (both lld and GNU ld) to strip these > sections from the final output, breaking the test. > > This is a limitation of clang's integrated assembler, not a GDB > issue. The test works correctly with GCC's assembler, which does > not set this flag. > > A workaround exists (-fno-integrated-as to use GNU's external > assembler), but it is not practical to apply in the testsuite. > Therefore, restrict this test to GCC only. > --- > > I've investigated this thoroughly and found that clang's integrated > assembler hardcodes the SHF_EXCLUDE flag on .debug_*.dwo sections. > The only workaround I found is -fno-integrated-as, which forces clang > to use GNU's external assembler. > > Does anyone have suggestions for making this test work with clang > without skipping it entirely? Or should we report this to LLVM as a bug? My approach for these kinds of things in the past was to open a bug with LLVM and mark the tests as XFAIL in our testsuite (at least if the rest of the test still make sense to run) > > gdb/testsuite/gdb.dwarf2/fission-dw-form-strx.exp | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/gdb/testsuite/gdb.dwarf2/fission-dw-form-strx.exp b/gdb/testsuite/gdb.dwarf2/fission-dw-form-strx.exp > index b0b842fe911..fb39cab9c75 100644 > --- a/gdb/testsuite/gdb.dwarf2/fission-dw-form-strx.exp > +++ b/gdb/testsuite/gdb.dwarf2/fission-dw-form-strx.exp > @@ -20,6 +20,13 @@ load_lib dwarf.exp > # This test can only be run on targets which support DWARF-2 and use gas. > require dwarf2_support > > +# This test requires GCC. Clang's integrated assembler incorrectly sets > +# the SHF_EXCLUDE flag on .debug_*.dwo sections, causing linkers to strip > +# them from the final output. This is a limitation of clang's integrated > +# assembler, not a GDB issue. The workaround (-fno-integrated-as) is not > +# practical for the testsuite. > +require {[test_compiler_info {gcc-*}]} > + > standard_testfile main.c -dw.S -dwo.S > > set main_asm_file [standard_output_file $srcfile2] -- Cheers, Guinevere Larsen It/she