Update elf-objfmt.c (#148)

This commit is contained in:
kalebskeithley 2023-05-13 00:15:02 -04:00 committed by GitHub
parent ce56a6f924
commit 0799f381d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;