Skip to content

Commit

Permalink
Update elf-objfmt.c (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalebskeithley committed May 13, 2023
1 parent ce56a6f commit 0799f38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/objfmts/elf/elf-objfmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0799f38

Please sign in to comment.