From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by sourceware.org (Postfix) with ESMTPS id 3B52C3856DDF; Tue, 26 Jul 2022 12:43:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3B52C3856DDF Received: by mail-pl1-x636.google.com with SMTP id d7so13191941plr.9; Tue, 26 Jul 2022 05:43:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=XlrJaG+gXgvr1mywNHaIZvvKJK7f3B6l0eaV30bxi6s=; b=qA4M9GfMjK0/cD84tBb4KX3tMYHzdEsHIoaxQXXJC44pB+ptRg3jiERD8JksLNxYBO dyneej5/RyZZGJpGSWb14N7sjrC5W5ojkzIcRzTszoC7twGBAL3hjLhqeK51se+Pd02M fSTu8gurv5SPu3LmWGtJ58E3pwhykPFVqqb/s/2X9C2sn0JSSprIH95zqTG7tGetq+va c6bzOBbHTo/NNrrwLj37lQCY1QdVCcdDA7igEnkbMfceumpCjGlGVJa7NBkZ3J1BDI7I bvDqgiTgUEziT6C+OjBpMbB43sSiL4+4AzKbCs82FnPmp+kIvuqOvFLk8wPfg1WW7Sia wMVg== X-Gm-Message-State: AJIora/21V4fpMWv20eDUF8ralsAS/uT/pyjVLqpy5mMIHP896DGfV1v oWTR4q+hc71yQBw4xr3eHCxHWUwFRIQ= X-Google-Smtp-Source: AGRyM1sQMxdjSEO8eIeziSDdye07qYmuWzLoBdRQXQdTv25/kkRA/yhDpSaquoSzCyJ70cE7ZroKwg== X-Received: by 2002:a17:903:32c3:b0:16d:328f:8988 with SMTP id i3-20020a17090332c300b0016d328f8988mr16333865plr.108.1658839416985; Tue, 26 Jul 2022 05:43:36 -0700 (PDT) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:2e5a:7890:2ff3:829a]) by smtp.gmail.com with ESMTPSA id g3-20020a1709026b4300b0016c6e360ff6sm11345718plt.303.2022.07.26.05.43.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jul 2022 05:43:36 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id D08241140885; Tue, 26 Jul 2022 22:13:33 +0930 (ACST) Date: Tue, 26 Jul 2022 22:13:33 +0930 From: Alan Modra To: Mark Wielaard Cc: binutils@sourceware.org, gdb@sourceware.org Subject: Re: buildbot vs --enable-targets=all Message-ID: References: <94d446556e470859b878bb27eec5e2a52d063673.camel@klomp.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-3035.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jul 2022 12:43:40 -0000 On Tue, Jul 26, 2022 at 09:16:50PM +0930, Alan Modra wrote: > So for some reason there is an empty .data section, putting all the > rest of the dump off by one. Reproduced here too. .data 0x0000000001810398 0x0 *crt1.o(.data .data.* .gnu.linkonce.d.*) [!provide] PROVIDE (__spe_handle = .) *(.data.spehandle) 0x0000000001810398 . = (. + (0x4 * (DEFINED (__spe_handle) || (. != 0x0)))) *(.data .data.* .gnu.linkonce.d.*) .data 0x0000000001810398 0x0 tmpdir/tls32.o So .data is there due to this configuration dependent snippet in ld/emulparams/elf32.sh: if grep -q 'ld_elf32_spu_emulation' ldemul-list.h; then # crt1.o defines data_start and __data_start. Keep them first. # Next put all the .data.spehandle sections, with a trailing zero word. DATA_START_SYMBOLS="${RELOCATING+*crt1.o(.data .data.* .gnu.linkonce.d.*) PROVIDE (__spe_handle = .); *(.data.spehandle) . += 4 * (DEFINED (__spe_handle) || . != 0);}" fi I'm about to commit the following to silence these benign fails. * testsuite/ld-powerpc/tlsexe32.r: Pass with .data section present. * testsuite/ld-powerpc/tlsexe32no.r: Likewise. * testsuite/ld-powerpc/tlsso32.r: Likewise. diff --git a/ld/testsuite/ld-powerpc/tlsexe32.r b/ld/testsuite/ld-powerpc/tlsexe32.r index 43db7379a4c..0e5765911a5 100644 --- a/ld/testsuite/ld-powerpc/tlsexe32.r +++ b/ld/testsuite/ld-powerpc/tlsexe32.r @@ -22,9 +22,6 @@ Section Headers: +\[[ 0-9]+\] \.dynamic +DYNAMIC +[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ 08 +WA +4 +0 +4 +\[[ 0-9]+\] \.got +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000018 04 +WA +0 +0 +4 +\[[ 0-9]+\] \.plt +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000004 00 +WA +0 +0 +4 - +\[[ 0-9]+\] \.symtab +SYMTAB +.* - +\[[ 0-9]+\] \.strtab +STRTAB +.* - +\[[ 0-9]+\] \.shstrtab +STRTAB +.* #... Elf file type is EXEC \(Executable file\) @@ -81,6 +78,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* SECTION +LOCAL +DEFAULT +10 \.dynamic .* SECTION +LOCAL +DEFAULT +11 \.got .* SECTION +LOCAL +DEFAULT +12 \.plt +#... .* FILE +LOCAL +DEFAULT +ABS .* .* NOTYPE +LOCAL +DEFAULT +ABS TLSMARK .* TLS +LOCAL +DEFAULT +8 gd4 @@ -99,12 +97,12 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +GLOBAL +DEFAULT +9 le1 .* TLS +GLOBAL +DEFAULT +UND ld .* NOTYPE +GLOBAL +DEFAULT +7 _start -.* NOTYPE +GLOBAL +DEFAULT +12 __end +.* NOTYPE +GLOBAL +DEFAULT +1[23] __end .* TLS +GLOBAL +DEFAULT +9 ld2 .* TLS +GLOBAL +DEFAULT +9 ld1 -.* NOTYPE +GLOBAL +DEFAULT +12 __bss_start +.* NOTYPE +GLOBAL +DEFAULT +1[23] __bss_start .* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr_opt -.* NOTYPE +GLOBAL +DEFAULT +12 _edata -.* NOTYPE +GLOBAL +DEFAULT +12 _end +.* NOTYPE +GLOBAL +DEFAULT +1[23] _edata +.* NOTYPE +GLOBAL +DEFAULT +1[23] _end .* TLS +GLOBAL +DEFAULT +9 gd0 .* TLS +GLOBAL +DEFAULT +9 ie0 diff --git a/ld/testsuite/ld-powerpc/tlsexe32no.r b/ld/testsuite/ld-powerpc/tlsexe32no.r index e254eeadf71..a9fb4373a96 100644 --- a/ld/testsuite/ld-powerpc/tlsexe32no.r +++ b/ld/testsuite/ld-powerpc/tlsexe32no.r @@ -22,9 +22,6 @@ Section Headers: +\[[ 0-9]+\] \.dynamic +DYNAMIC +[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ 08 +WA +4 +0 +4 +\[[ 0-9]+\] \.got +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000038 04 +WA +0 +0 +4 +\[[ 0-9]+\] \.plt +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000004 00 +WA +0 +0 +4 - +\[[ 0-9]+\] \.symtab +SYMTAB +.* - +\[[ 0-9]+\] \.strtab +STRTAB +.* - +\[[ 0-9]+\] \.shstrtab +STRTAB +.* #... Elf file type is EXEC \(Executable file\) @@ -82,6 +79,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* SECTION +LOCAL +DEFAULT +10 \.dynamic .* SECTION +LOCAL +DEFAULT +11 \.got .* SECTION +LOCAL +DEFAULT +12 \.plt +#... .* FILE +LOCAL +DEFAULT +ABS .* .* NOTYPE +LOCAL +DEFAULT +ABS TLSMARK .* TLS +LOCAL +DEFAULT +8 gd4 @@ -100,12 +98,12 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* TLS +GLOBAL +DEFAULT +9 le1 .* TLS +GLOBAL +DEFAULT +UND ld .* NOTYPE +GLOBAL +DEFAULT +7 _start -.* NOTYPE +GLOBAL +DEFAULT +12 __end +.* NOTYPE +GLOBAL +DEFAULT +1[23] __end .* TLS +GLOBAL +DEFAULT +9 ld2 .* TLS +GLOBAL +DEFAULT +9 ld1 -.* NOTYPE +GLOBAL +DEFAULT +12 __bss_start +.* NOTYPE +GLOBAL +DEFAULT +1[23] __bss_start .* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr_opt -.* NOTYPE +GLOBAL +DEFAULT +12 _edata -.* NOTYPE +GLOBAL +DEFAULT +12 _end +.* NOTYPE +GLOBAL +DEFAULT +1[23] _edata +.* NOTYPE +GLOBAL +DEFAULT +1[23] _end .* TLS +GLOBAL +DEFAULT +9 gd0 .* TLS +GLOBAL +DEFAULT +9 ie0 diff --git a/ld/testsuite/ld-powerpc/tlsso32.r b/ld/testsuite/ld-powerpc/tlsso32.r index 3f92f8066cf..cd4b5e8c2eb 100644 --- a/ld/testsuite/ld-powerpc/tlsso32.r +++ b/ld/testsuite/ld-powerpc/tlsso32.r @@ -20,9 +20,6 @@ Section Headers: +\[[ 0-9]+\] \.dynamic +DYNAMIC .* 08 +WA +3 +0 +4 +\[[ 0-9]+\] \.got +PROGBITS .* 0+40 04 +WA +0 +0 +4 +\[[ 0-9]+\] \.plt +PROGBITS .* 0+4 00 +WA +0 +0 +4 - +\[[ 0-9]+\] \.symtab +.* - +\[[ 0-9]+\] \.strtab +.* - +\[[ 0-9]+\] \.shstrtab +.* #... Elf file type is DYN \(Shared object file\) @@ -100,6 +97,7 @@ Symbol table '\.symtab' contains [0-9]+ entries: .* SECTION +LOCAL +DEFAULT +9 \.dynamic .* SECTION +LOCAL +DEFAULT +10 \.got .* SECTION +LOCAL +DEFAULT +11 \.plt +#... .* FILE +LOCAL +DEFAULT +ABS .* .* NOTYPE +LOCAL +DEFAULT +ABS TLSMARK .* TLS +LOCAL +DEFAULT +7 gd4 -- Alan Modra Australia Development Lab, IBM