[PATCH] D30256: [ELF] - Implemented -z noreloc-overflow.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 22 12:22:44 PST 2017


>Allowing relocations against text segments when -no-dynamic-linker is given sounds too hacky and not OK. You cannot describe >why it makes sense, right? By making sense, I don't mean "because Linux kernel needs this" but something like "-no-dynamic->linker is an option to do blah blah and semantically it naturally implies it should allow text relocations".

Well, may be I can.

Lets start from simple.
Why do we restrict relocations against text segment ? I guess because we having such relocations
means that text segments will not be shared right ? (if we are talking about DSO).
That is not fine, but not a critical issue too.

But why do we restrict relocations for PIE ??

George.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170222/8cfd65f6/attachment.html>


More information about the llvm-commits mailing list