summaryrefslogtreecommitdiff
path: root/output
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2019-02-26 02:36:15 -0800
committerH. Peter Anvin <hpa@zytor.com>2019-02-26 02:36:15 -0800
commita8604c83fa8ece9859fb76b328b8753f549b8863 (patch)
treea971620f1a0255a97322075b83dda33a15cd53d1 /output
parentdc5939b4960e169e19c536e5503ec4487cff550d (diff)
downloadnasm-a8604c83fa8ece9859fb76b328b8753f549b8863.tar.gz
ELF: the .note section should be 4-byte aligned
The ELF .note section contains of 4-byte words and should be aligned accordingly. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'output')
-rw-r--r--output/outelf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/output/outelf.c b/output/outelf.c
index f0641fd7..36531d3a 100644
--- a/output/outelf.c
+++ b/output/outelf.c
@@ -251,7 +251,7 @@ static const struct elf_known_section elf_known_sections[] = {
{ ".preinit_array", SHT_PREINIT_ARRAY, SHF_ALLOC, -1, -1 },
{ ".init_array", SHT_INIT_ARRAY, SHF_ALLOC, -1, -1 },
{ ".fini_array", SHT_FINI_ARRAY, SHF_ALLOC, -1, -1 },
- { ".note", SHT_NOTE, 0, 1, 0 },
+ { ".note", SHT_NOTE, 0, 4, 0 },
{ NULL /*default*/, SHT_PROGBITS, SHF_ALLOC, 1, 0 }
};