Re: [PATCH] ld: testsuite: Declare the section in ld/testsuite/ld-gc/dummy.s correctly.

Jan Dubiec <[email protected]>
Newsgroups gmane.comp.gnu.binutils
Message-ID <[email protected]>
On 12.08.2026 09:01, Jan Beulich wrote:
> On 10.08.2026 01:38, Jan Dubiec wrote:
>> --- a/ld/testsuite/ld-gc/dummy.s
>> +++ b/ld/testsuite/ld-gc/dummy.s
>> @@ -1,2 +1,2 @@
>>   # Dummy
>> -	.section	".note.GNU-stack"
>> +	.section	".note.GNU-stack", ""
> 
> Besides ELF, for COFF this looks to be okay, but apparently not for e.g. Mach-O?
> Is our Mach-O support broken enough to simply not care?

My knowledge of Mach-O is close to zero, but a quick search shows that 
the .section directive in this format requires at least two arguments. 
So I think these test cases have never been supported for the Mach-O 
format. Apart from the special handling of ".note.GNU-stack".

/J.D.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.