[PATCH] D12978: [ELF2] Support relocs for local symbols

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 18 13:47:16 PDT 2015


Looks like getRelocationSymbol needs to be fixed first. It doesn't
handle SHN_XINDEX it it doesn't need to be templated over reloc type
since it never looks at the addend.

I will give it a quick try.


On 18 September 2015 at 14:42, Davide Italiano <dccitaliano at gmail.com> wrote:
> davide created this revision.
> davide added a reviewer: rafael.
> davide added a subscriber: llvm-commits.
>
> I hope this covers all the cases -- should we handle SHN_XINDEX here as well?
> Also, do you want me to introduce a getLocalSymVA(InputSection, OutputSection, Sym) helper?
>
> http://reviews.llvm.org/D12978
>
> Files:
>   ELF/Writer.cpp
>   test/elf2/relocation-local.s
>


More information about the llvm-commits mailing list