[PATCH] D33046: [ELF] - Set DF_TEXTREL flag properly.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 11 01:34:10 PDT 2017
grimar added a comment.
In https://reviews.llvm.org/D33046#751201, @ruiu wrote:
> If the Linux kernel was the only reason you wanted `-z text`, and the Linux kernel doesn't actually use that flag, I'd support removing `-z text` flag entirely.
What I was trying to say that lunux kernel does not need DT_TEXTREL or DF_TEXTREL flags, because it self relocates and not depend on flags to do that.
But without -z **notext** it was impossible to link it when it configured with KASLR. Because bfd allows text relocations by default and we - don't. We reported an error,
option allows to fix that.
https://reviews.llvm.org/D33046
More information about the llvm-commits
mailing list