summaryrefslogtreecommitdiff
path: root/modules/objfmts/elf/elf-objfmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/objfmts/elf/elf-objfmt.c')
-rw-r--r--modules/objfmts/elf/elf-objfmt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/objfmts/elf/elf-objfmt.c b/modules/objfmts/elf/elf-objfmt.c
index 0c3a1426..c4360c03 100644
--- a/modules/objfmts/elf/elf-objfmt.c
+++ b/modules/objfmts/elf/elf-objfmt.c
@@ -1077,6 +1077,10 @@ elf_objfmt_section_switch(yasm_object *object, yasm_valparamhead *valparams,
align = 0;
data.type = SHT_PROGBITS;
data.flags = 0;
+ } else if (strcmp(sectname, ".note.gnu.property") == 0) {
+ align = 8;
+ data.type = SHT_NOTE;
+ data.flags = 0;
} else {
/* Default to code */
align = 1;