summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkalebskeithley <kkeithle@redhat.com>2023-05-13 00:15:02 -0400
committerGitHub <noreply@github.com>2023-05-12 21:15:02 -0700
commit0799f381d513e18f404654047fa1b412084968c8 (patch)
tree710965c7bfda390090787d7a4779749c847bd58e
parentce56a6f924274a859db9bb46a8181217d9021c74 (diff)
downloadyasm-0799f381d513e18f404654047fa1b412084968c8.tar.gz
Update elf-objfmt.c (#148)
-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;