[PATCH] D15235: [ELF] - Implemented R_*_IRELATIVE relocations for x86, x64 targets.

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 9 02:44:59 PST 2015


On Tue, Dec 08, 2015 at 06:21:07PM +0000, Rui Ueyama via llvm-commits wrote:
> ruiu added a comment.
> 
> I'm not still sure if these relocations have to be handled by the linker. These relocations use runtime addresses, so only the dynamic linker has to handle them, no?

We should have at least some story for static linking. IIRC glibc
doesn't support it for that, but if I ever want to exploit them for
NetBSD, consistent behavior for static binaries certainly is a
must-have. It could transform it to a stub function that does an
indirect call.

Joerg


More information about the llvm-commits mailing list