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

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri May 6 15:37:28 PDT 2016


Does that mean the value the static linker writes to the first GOT slot
will be ignored?

On Fri, May 6, 2016 at 3:18 PM, Joerg Sonnenberger via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> 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
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160506/668eaf59/attachment.html>


More information about the llvm-commits mailing list