FreeBSD 12.2 extra RW program header
Paul Floyd
pjfloyd at wanadoo.fr
Mon Nov 16 14:50:38 UTC 2020
On 11/16/20 2:27 PM, Konstantin Belousov wrote:
> That's not full details, you stripped readelf output that describes it.
>
> The first rw data segment is really ro after linking is finished, you can
> see that RELRO segment location is identical to the first loadable rw segment.
> It contains the following sections typically
> .ctors .dtors .dynamic .got
> .got (but not .got.plt) is patched by rtld during load.
>
> I do not remember when did we enabled relro. Most likely long time before 12.1,
> and the new segment is due to the way relro handling changed in lld 10.
Hi
Looking a bit more at the rest of the readelf output I see that there is
one RW segement, as you say with .ctors .dtors etc. The added one just
seems to have __progname.
There are also significant debuginfo changes.
Time to go and scratch my head a bit.
A+
Paul
More information about the freebsd-hackers
mailing list