Re: RELRO: support in ld.so

2016-08-08 Thread Mark Kettenis
> Date: Sat, 6 Aug 2016 18:58:57 -0700 > From: Philip Guenther > > Let's teach ld.so to look for a PT_GNU_RELRO section per object and, if > present, mprotect(PROT_READ) the range it covers *instead of* the > __got_start .. __got_end range. > > Two interesting bits are in here: > 1) we need t

RELRO: support in ld.so

2016-08-06 Thread Philip Guenther
Let's teach ld.so to look for a PT_GNU_RELRO section per object and, if present, mprotect(PROT_READ) the range it covers *instead of* the __got_start .. __got_end range. Two interesting bits are in here: 1) we need to move up the handling of DT_DEBUG to before relocation is done, so that