[PATCH] D26133: [ELF] Allow relative relocations to absolute symbols in PIC

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 13 05:42:32 PST 2016


> Hi Rafael,
>
> I found some discussion on the binutils bug tracker and mailing list
> https://sourceware.org/bugzilla/show_bug.cgi?id=14052
> https://sourceware.org/ml/binutils/2012-05/msg00023.html
>
> It looks like the conclusion to be drawn is that BFD's behaviour is wrong.

Thank you so much. We should deferentially not copy the bug then.

If we want a way to refer to the image base from linker script I propose
a new magic variable: IMAGE_BASE.

Cheers,
Rafael


More information about the llvm-commits mailing list