summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2009-07-01 00:37:36 +0400
committerH. Peter Anvin <hpa@zytor.com>2009-06-30 14:09:39 -0700
commit2118261e1aa1f8545c86e5a614cee76f8b99d539 (patch)
treea253d13cfd277070153c8e385a137a8eafb92c5d
parent6a9d79f873b65f39305089677ed1ea1a215fc336 (diff)
downloadnasm-2118261e1aa1f8545c86e5a614cee76f8b99d539.tar.gz
ELF64: fix incorrect type for the .strtab section header
The .strtab section is SHT_STRTAB, not SHT_SYMTAB. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--output/outelf64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/output/outelf64.c b/output/outelf64.c
index 9834cdc7..f31c196e 100644
--- a/output/outelf64.c
+++ b/output/outelf64.c
@@ -1176,7 +1176,7 @@ static void elf_write(void)
p += strlen(p) + 1;
/* .strtab */
- elf_section_header(p - shstrtab, SHT_SYMTAB, 0, strs, true,
+ elf_section_header(p - shstrtab, SHT_STRTAB, 0, strs, true,
strslen, 0, 0, 1, 0);
p += strlen(p) + 1;