[PATCH] ld/aarch64: prune a PE/COFF test

Jan Beulich jbeulich@suse.com
Mon Aug 11 07:13:58 GMT 2025


On 08.08.2025 23:59, Maciej W. Rozycki wrote:
> On Fri, 8 Aug 2025, Jan Beulich wrote:
> 
>> Expecting ___tls_end__ there is entirely random, when there are multiple
>> symbols all at the same address. Help objdump to pick the intended
>> symbol, by making it global and giving it a type.
>> ---
>> v2: New (split out and re-worked).
>>
>> --- a/ld/testsuite/ld-pe/pe-aarch64.d
>> +++ b/ld/testsuite/ld-pe/pe-aarch64.d
>> @@ -6,7 +6,7 @@
>>  
>>  Disassembly of section .text:
>>  
>> -0000000140001000 <___tls_end__>:
>> +0000000140001000 <_start>:
> 
>  Does the symbol reported here have any meaning for this test?  What's the 
> purpose of the test?

You'll need to ask the original author.

>  The usual approach is just to match anything with 
> disassembly:
> 
> 0000000140001000 <[^>]*>:
> 
> and if you want to examine the symbol table too, then have the `-t' option 
> supplied along with corresponding patterns for the extra output produced.

All "maybe", but I don't want to relax such tests more than necessary, when
I can't really tell what the original intentions were. See also the earlier
discussion with Richard:
https://sourceware.org/pipermail/binutils/2025-August/143202.html

Jan


More information about the Binutils mailing list