[LLVMdev] Placing globals in specific sections
yossi.kreinin at mobileye.com
Sat Jan 28 04:01:23 PST 2006
The LLVM Bytecode File Format specifies an optional SectionID attribute
for globals. I didn't find a matching attribute in the LLVM source code.
Code such as:
int a __attribute__ ((section ("A_SECTION")));
compiles with llvm-gcc, but apparently the section information is
stripped (the object file doesn't contain "A_SECTION").
Is the SectionID feature implemented or just defined?
More information about the llvm-dev