binutils ld and new PT_GNU_PROPERTY segment

Szabolcs Nagy szabolcs.nagy@arm.com
Wed Apr 1 10:10:02 GMT 2020


The 04/01/2020 11:29, Florian Weimer wrote:
> * Szabolcs Nagy:
> > why only -r is problematic?
> >
> > i thought linking exactly one marked object and other non-marked
> > ones with an old linker will have the (incorrect) marking on the
> > output that cannot be recognised as wrong.
> 
> Where do you get that single marked object?
> 
> If you are on a CET-enabled distribution, the startup files are marked,
> so you have multiple marked objects right there.

assume your toolchain is not cet enabled (and has an old
linker) but you link in a library archive that is cet
enabled (because it was given to you that way) and exactly
one .o from it gets used during the link.

the resulting binary will have the marking and if deployed
on a cet enabled system it won't work. (at least this is
my current understanding.)


More information about the Gnu-gabi mailing list