[PATCH] D30530: [ELF] - Implemented -z text/-znotext

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 2 02:52:31 PST 2017


grimar created this revision.

gold linker manual describes them as:

-z text	Do not permit relocations in read-only segments
-z notext Permit relocations in read-only segments (default)

In LLD default is to not permit them. Patch implements both.


https://reviews.llvm.org/D30530

Files:
  ELF/Config.h
  ELF/Driver.cpp
  ELF/Relocations.cpp
  ELF/SyntheticSections.cpp
  test/ELF/ztext-text-notext.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30530.90305.patch
Type: text/x-patch
Size: 3808 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170302/e226bc67/attachment.bin>


More information about the llvm-commits mailing list