[LLVMdev] defining symbols with lld

Shankar Easwaran shankare at codeaurora.org
Fri Aug 23 13:54:03 PDT 2013


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)

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