[LLVMdev] defining symbols with lld

Nick Kledzik kledzik at apple.com
Fri Aug 23 14:34:20 PDT 2013


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 - .

-Nick



More information about the llvm-dev mailing list