[PATCH] D15335: [ELF] - R_X86_64_SIZE64/R_X86_64_SIZE32 relocations implemented.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 8 07:58:27 PST 2015
grimar created this revision.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar.
R_X86_64_SIZE64/R_X86_64_SIZE32 relocations were introduced in 0.98v of "System V Application Binary Interface x86-64" (http://www.x86-64.org/documentation/abi.pdf).
Calculation for them is Z + A, where:
Z - Represents the size of the symbol whose index resides in the relocation entry.
A - Represents the addend used to compute the value of the relocatable field.
Currently afaik gold does not support these, but bfd does.
http://reviews.llvm.org/D15335
Files:
ELF/InputSection.cpp
ELF/Target.cpp
ELF/Target.h
test/ELF/Inputs/relocation-size-shared.s
test/ELF/relocation-size-shared.s
test/ELF/relocation-size.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15335.42180.patch
Type: text/x-patch
Size: 13024 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151208/32ef33f9/attachment.bin>
More information about the llvm-commits
mailing list