[LLVMdev] funny llvm bug

Reed Kotler rkotler at mips.com
Fri Apr 19 13:50:04 PDT 2013


On 04/19/2013 12:43 PM, Joerg Sonnenberger wrote:
> On Fri, Apr 19, 2013 at 09:47:28AM -0700, reed kotler wrote:
>> The clean solution is probably to add two additional function
>> attributes to cover these additional pieces, namely "ax" and
>> @progbits.
>
> Extend the section attribute to allow additional parameters?
>
> Joerg
>
The idea would be to create additional function attributes.
I have not spent time thinking this through yet.

section_flags("flags")
section_type("type")
others....

so then

void x(int i) __attributes__((section("mysection"), section_flags("aw"), 
section_type("@progbits")) ;

or maybe extend the syntax of section

section(<name> [<section_flags>] [,<type>])




More information about the llvm-dev mailing list