From 60ff4dc4b5a5fbcb08c1da14a2749c4c0bc25d1d Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Sun, 17 Sep 2006 18:57:43 +0000 Subject: [PATCH] * elf.c (special_sections_s): Revert last STRING_COMMA_LEN change for .stabstr entry, explain why. --- bfd/ChangeLog | 5 +++++ bfd/elf.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d2a392fb93..16d81db47c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2006-09-17 Hans-Peter Nilsson + + * elf.c (special_sections_s): Revert last STRING_COMMA_LEN change + for .stabstr entry, explain why. + 2006-09-17 Anton Blanchard Alan Modra 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 } };