[LLVMdev] funny llvm bug

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Apr 19 14:34:12 PDT 2013


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

What would the semantic be of having section_flags but no section name?

> 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>])

This avoids the above mentioned problem, so it is probably better.

Cheers,
Rafael



More information about the llvm-dev mailing list