[PATCH 2/2] ld: fold .note.GNU-stack during relocatable linking

Jan Beulich jbeulich@suse.com
Thu Jan 29 15:24:11 GMT 2026


On 29.01.2026 15:41, John David Anglin wrote:
> Based on ld/configure.tgt, I believe the hppa xfails should be hppa*-*-*elf*
> and hppa*-*-lites*.

Oh, indeed. I've adjusted this for the moment, but ...

> On 2026-01-29 2:18 a.m., Jan Beulich wrote:
>> PR ld/33851
>>
>> While in all binutils components we've switched the section to be of
>> SHT_NOTE type, assembly sources as well as other tools may still generate
>> SHT_PROGBITS instances. When doing relocatable links, input sections with
>> differing types would cause multiple output sections to be created, which
>> some tools choke upon. Fold incoming sections into a single one, the type
>> of which will be the type of the first section encountered.
>> ---
>> cr16 and crx have empty *.xr (explicitly forced so), while hppa-elf uses
>> extremely shrunk down scripts. XFAIL the negative tests for all of those,
>> for the time being. I wonder if all of them wouldn't better use elf.sc
>> for -r and -Ur script generation.

... any opinion here, for the hppa part?

Jan


More information about the Binutils mailing list