[LLVMdev] [lld] Relocation reading refactoring
Shankar Easwaran
shankare at codeaurora.org
Sun Mar 9 20:18:11 PDT 2014
LGTM. Thanks for the info.
On 3/9/2014 8:43 AM, Simon Atanasyan wrote:
> Hi Shankar,
>
> I've implemented the option "A" at r203408:
> http://llvm.org/viewvc/llvm-project?rev=203408&view=rev
>
> On Thu, Mar 6, 2014 at 6:05 PM, shankarke <shankarke at gmail.com> wrote:
>> We could stick to option A and implement or move to option B need be.
>>
>> Sent from my iPhone
>>
>> On Mar 6, 2014, at 1:58, "Simon Atanasyan-2 [via LLVM]" <[hidden email]>
>> wrote:
> [...]
>
>> A:
>> =====
>> 1. Factor out `ELFReference` creation from
>> `createDefinedAtomAndAssignRelocations` into a couple of virtual
>> functions with the following signature:
>>
>> ELFReference<ELFT> *
>> createRelocationReference(const Elf_Sym &symbol, const Elf_Rela &rai);
>>
>> ELFReference<ELFT> *
>> createRelocationReference(const Elf_Sym &symbol, const Elf_Rel &ri,
>> ArrayRef<uint8_t> content);
>>
>> 2. Override one or both these methods in the <target name>ELFFile class.
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation
More information about the llvm-dev
mailing list