llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

section flags syntax differences between gas and llvm intergrated assembler

Open cddouma-arm opened this issue 10 years ago • 0 comments

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

cddouma-arm avatar Oct 19 '16 12:10 cddouma-arm