[PATCH] D14703: [ELF2] Remove target specific code from GotPltSection.

Igor Kudrin via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 16 09:15:05 PST 2015


ikudrin added a comment.

In http://reviews.llvm.org/D14703#290144, @grimar wrote:

> Patch looks fine for my eye, but have a question:
>  Did you find out why AArch64 requires 3 reserved entries then ? What is zero got.plt entry for ?


I haven't done a deep investigation, but at least gold has the following comment in its aarch64.cc:

  // Layout of .got and .got.plt sections.
  // .got[0] &_DYNAMIC                          <-_GLOBAL_OFFSET_TABLE_
  // ...
  // .gotplt[0] reserved for ld.so (&linkmap)   <--DT_PLTGOT
  // .gotplt[1] reserved for ld.so (resolver)
  // .gotplt[2] reserved


http://reviews.llvm.org/D14703





More information about the llvm-commits mailing list