[PATCH] D30256: [ELF] - Implemented -z noreloc-overflow.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 22 13:09:12 PST 2017
I believe GNU linker prints out "relocations against text section;
recomiple with -fPIC" warning if the linker is creating a DSO. Does it warn
on text relocations if no -shared is given?
On Wed, Feb 22, 2017 at 1:06 PM, George Rimar <grimar at accesssoftek.com>
wrote:
> >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/c7114fbf/attachment.html>
More information about the llvm-commits
mailing list