llvm-project
llvm-project copied to clipboard
section flags syntax differences between gas and llvm intergrated assembler
| Bugzilla Link | 30733 |
| Version | trunk |
| OS | All |
Extended Description
gas its .section directive nowadays accepts "a numeric value indicating the bits to be set in the ELF section header's flags field". See:
https://sourceware.org/binutils/docs-2.27/as/Section.html#Section
Note that this can also be applied to builtin sections. For example this works in gas (but not in llvm): .section .text,"0x20000006",%progbits