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

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Fri May 6 10:09:56 PDT 2016


grimar created this revision.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: grimar, llvm-commits.
Herald added a subscriber: joker.eph.

First entries of got.plt can be protected using RelRo technique,
this patch implements this by shifting got.plt to the memory page,
where relro is active.

Both gold and bfd do that and it should be good for security.

http://reviews.llvm.org/D20024

Files:
  ELF/OutputSections.h
  ELF/Writer.cpp
  test/ELF/aarch64-condb-reloc.s
  test/ELF/aarch64-gnu-ifunc.s
  test/ELF/aarch64-tstbr14-reloc.s
  test/ELF/copy-rel-pie.s
  test/ELF/dynamic-reloc-index.s
  test/ELF/dynamic-reloc.s
  test/ELF/gnu-ifunc-i386.s
  test/ELF/gnu-ifunc.s
  test/ELF/lto/undefined-puts.ll
  test/ELF/mips-26.s
  test/ELF/plt-aarch64.s
  test/ELF/plt-i686.s
  test/ELF/plt.s
  test/ELF/relocation.s
  test/ELF/relro.s
  test/ELF/undef-with-plt-addr.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20024.56429.patch
Type: text/x-patch
Size: 42190 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160506/e0e504b3/attachment.bin>


More information about the llvm-commits mailing list