aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-07-28 14:21:44 +0000
committerAlan Modra <amodra@gmail.com>2003-07-28 14:21:44 +0000
commit36c506c53667f31569471a46d914c860c89b8a9a (patch)
tree1c146173a57dc3f2643ee05bff7f644c05b42e57
parentdb7429406e839703fdd72d590af51cb4f1ee9456 (diff)
downloadgdb-36c506c53667f31569471a46d914c860c89b8a9a.zip
gdb-36c506c53667f31569471a46d914c860c89b8a9a.tar.gz
gdb-36c506c53667f31569471a46d914c860c89b8a9a.tar.bz2
* elf.c (special_sections): Set attributes for .got and .plt.
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf.c12
2 files changed, 10 insertions, 6 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 23c0ad3..0aa4e09 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2003-07-28 Alan Modra <amodra@bigpond.net.au>
+
+ * elf.c (special_sections): Set attributes for .got and .plt.
+
2003-07-27 Alan Modra <amodra@bigpond.net.au>
* elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Ensure no copy relocs
diff --git a/bfd/elf.c b/bfd/elf.c
index 9f7eb46..b6f8024 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -2174,9 +2174,9 @@ static struct bfd_elf_special_section const special_sections[] =
{ ".init_array", 0, NULL, 0,
SHT_INIT_ARRAY, SHF_ALLOC + SHF_WRITE },
{ ".fini_array", 0, NULL, 0,
- SHT_FINI_ARRAY, SHF_ALLOC + SHF_WRITE },
+ SHT_FINI_ARRAY, SHF_ALLOC + SHF_WRITE },
{ ".preinit_array", 0, NULL, 0,
- SHT_PREINIT_ARRAY, SHF_ALLOC + SHF_WRITE },
+ SHT_PREINIT_ARRAY, SHF_ALLOC + SHF_WRITE },
{ ".debug_line", 0, NULL, 0,
SHT_PROGBITS, 0 },
{ ".debug_info", 0, NULL, 0,
@@ -2192,13 +2192,13 @@ static struct bfd_elf_special_section const special_sections[] =
{ ".dynsym", 0, NULL, 0,
SHT_DYNSYM, SHF_ALLOC },
{ ".got", 0, NULL, 0,
- SHT_PROGBITS, 0 },
+ SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
{ ".hash", 0, NULL, 0,
SHT_HASH, SHF_ALLOC },
{ ".interp", 0, NULL, 0,
SHT_PROGBITS, 0 },
{ ".plt", 0, NULL, 0,
- SHT_PROGBITS, 0 },
+ SHT_PROGBITS, SHF_ALLOC + SHF_EXECINSTR },
{ ".shstrtab", 0, NULL, 0,
SHT_STRTAB, 0 },
{ ".strtab", 0, NULL, 0,
@@ -2216,11 +2216,11 @@ static struct bfd_elf_special_section const special_sections[] =
{ ".rela", 5, NULL, 0,
SHT_RELA, 0 },
{ ".rel", 4, NULL, 0,
- SHT_REL, 0 },
+ SHT_REL, 0 },
{ ".stab", 5, "str", 3,
SHT_STRTAB, 0 },
{ NULL, 0, NULL, 0,
- 0, 0 }
+ 0, 0 }
};
static const struct bfd_elf_special_section *