Date: Mon, 16 Nov 2020 15:50:33 +0100 From: Paul Floyd <pjfloyd@wanadoo.fr> To: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: FreeBSD 12.2 extra RW program header Message-ID: <3520fd5a-9b8f-6766-ce6b-4014dc3b4776@wanadoo.fr> In-Reply-To: <X7J%2BQ8ngg8Fjxn54@kib.kiev.ua> References: <8ff8067a-3354-3587-4eda-1aa802f6c86b@wanadoo.fr> <X7J%2BQ8ngg8Fjxn54@kib.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3520fd5a-9b8f-6766-ce6b-4014dc3b4776>