[PATCH] D15193: [ELF/AArch64] Allow only valid dynamic relocations in the output.

Igor Kudrin via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 4 03:59:11 PST 2015



On 03.12.2015 22:54, Davide Italiano wrote:
>
>
> On Thursday, December 3, 2015, Igor Kudrin <ikudrin.dev at gmail.com 
> <mailto:ikudrin.dev at gmail.com>> wrote:
>
>     ikudrin created this revision.
>     ikudrin added reviewers: ruiu, davide, rafael.
>     ikudrin added a subscriber: llvm-commits.
>     ikudrin added a project: lld.
>     Herald added subscribers: rengolin, aemerson.
>
>     All relocations, which cannot be handled by the dynamic linker,
>     cause a linking error "rebuild with -fPIC". 
>
>
>     The implementation differs from both ld and gold, which silently
>     generate a result file without any errors.
>
>
>
>  Do you know why gold doesn't handle that? Maybe it's worth reporting 
> a bug in their tracker.

It might be legacy of the past. At least, they have a patch for ld 
(https://sourceware.org/ml/binutils/2015-04/msg00247.html)
but it seems not work in my testcase.

https://sourceware.org/bugzilla/show_bug.cgi?id=19327
https://sourceware.org/bugzilla/show_bug.cgi?id=19328

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151204/4dd6b5be/attachment.html>


More information about the llvm-commits mailing list