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

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 22 13:06:08 PST 2017


>Refused to link a DSO if it contains text relocations is probably too restrictive, even though we are doing that today. DSOs with >text relocations are bad but not technically incorrect.


FWIW, ld.bfd 2.27 I have has next options:


  -z text                     Treat DT_TEXTREL in shared object as error
  -z notext                 Don't treat DT_TEXTREL in shared object as error
  -z textoff                 Don't treat DT_TEXTREL in shared object as error

https://sourceware.org/bugzilla/show_bug.cgi?id=13469
https://sourceware.org/bugzilla/attachment.cgi?id=5966&action=diff
?
May be we should implement them then.

George.

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


More information about the llvm-commits mailing list