summaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2006-09-17 18:57:43 +0000
committerHans-Peter Nilsson <hp@axis.com>2006-09-17 18:57:43 +0000
commit2c6fa73f62a1a40f3c25a309c6c1e70afd72fdef (patch)
treee3cb25ed31b0755ce0ab3e76b443baaea4b0474d /bfd/elf.c
parent6ae03305a04a25b65ec3cc774c4e4e07bdbe08f7 (diff)
downloadbinutils-redhat-2c6fa73f62a1a40f3c25a309c6c1e70afd72fdef.tar.gz
* elf.c (special_sections_s): Revert last STRING_COMMA_LEN change
for .stabstr entry, explain why.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 83bfcef843..8ce0933ad9 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -2374,7 +2374,9 @@ static const struct bfd_elf_special_section special_sections_s[] =
{ STRING_COMMA_LEN (".shstrtab"), 0, SHT_STRTAB, 0 },
{ STRING_COMMA_LEN (".strtab"), 0, SHT_STRTAB, 0 },
{ STRING_COMMA_LEN (".symtab"), 0, SHT_SYMTAB, 0 },
- { STRING_COMMA_LEN (".stabstr"), 3, SHT_STRTAB, 0 },
+ /* See struct bfd_elf_special_section declaration for the semantics of
+ this special case where .prefix_length != strlen (.prefix). */
+ { ".stabstr", 5, 3, SHT_STRTAB, 0 },
{ NULL, 0, 0, 0, 0 }
};