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

John David Anglin dave.anglin@bell.net
Thu Jan 29 15:50:27 GMT 2026


On 2026-01-29 10:24 a.m., Jan Beulich wrote:
> 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?

Not really.  I believe the above targets were for an embedded PA-RISC processor
made by Hitachi.  Hitachi also made PA-RISC laptops and servers.  They are all
obsolete, so I don't think there's any point in trying to update script.

-- 
John David Anglin  dave.anglin@bell.net


More information about the Binutils mailing list