From 2118261e1aa1f8545c86e5a614cee76f8b99d539 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Wed, 1 Jul 2009 00:37:36 +0400 Subject: [PATCH] ELF64: fix incorrect type for the .strtab section header The .strtab section is SHT_STRTAB, not SHT_SYMTAB. Signed-off-by: Cyrill Gorcunov Signed-off-by: H. Peter Anvin --- output/outelf64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output/outelf64.c b/output/outelf64.c index 9834cdc..f31c196 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; -- 2.7.4