[PATCH] D20024: [ELF] - Protect first entries of got.plt with RelRo.

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Fri May 6 15:18:40 PDT 2016


On Fri, May 06, 2016 at 02:27:00PM -0400, Rafael EspĂ­ndola via llvm-commits wrote:
> On 6 May 2016 at 14:23, Rui Ueyama <ruiu at google.com> wrote:
> > Can we simply drop it? I'm wondering if other libc's or dynamic linkers use
> > it.
> 
> From what is written in the abi it looks like it would only be used by
> self relocating programs (i.e.: ld.so).
> 
> But those could do just what musl does.

Looking at NetBSD's rtld, the first GOT slot is used to compute the
relocbase, which is different from _DYNAMIC.

Joerg


More information about the llvm-commits mailing list