[LLVMdev] defining symbols with lld
Shankar Easwaran
shankare at codeaurora.org
Fri Aug 23 14:39:54 PDT 2013
On 8/23/2013 4:34 PM, Nick Kledzik wrote:
> On Aug 23, 2013, at 1:54 PM, Shankar Easwaran <shankare at codeaurora.org> wrote:
>
>> Hi Nick,
>>
>> Thanks for your reply.
>>
>> On 8/23/2013 3:40 PM, Nick Kledzik wrote:
>>> These are the changes I plan to make, and some questions that I have
>>>
>>> a) Define a new contentType for DefinedAtoms to say 'Expression'
>>> b) Create a new class ExprnAtom derived from DefinedAtom
>>> c) The expression could also contain various functions that could be set in the expression, how should that be represented ?
>>> I don’t understand this. I thought expression where like "_foo + 10”. What do you mean by functions set in expression?
>> Linker scripts can set expressions to be, some of the examples that I have seen are :-
>>
>> foo=SIZEOF(.text)
>> foo=14+ADDR(.data)
>> foo=ALIGN(4096)
> So you are saying there are some built in functions in addition to operators like + and - .
Yes.
Thanks
Shankar Easwaran
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation
More information about the llvm-dev
mailing list