aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2011-04-12 23:23:02 +0000
committerRichard Henderson <rth@redhat.com>2011-04-12 23:23:02 +0000
commit6452a567da6f4098a453410c6f21f63ad87af265 (patch)
treecdf152d401511f6e9f27d951fbbdaa4046f8db92 /bfd
parent88597d3422353743f77a4f4de1f3e790cb9f1645 (diff)
downloadgdb-6452a567da6f4098a453410c6f21f63ad87af265.zip
gdb-6452a567da6f4098a453410c6f21f63ad87af265.tar.gz
gdb-6452a567da6f4098a453410c6f21f63ad87af265.tar.bz2
* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Do not
exclude empty .got sections.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf64-alpha.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 4d0f3e0..ce76b34 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2011-04-12 Richard Henderson <rth@redhat.com>
+
+ * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Do not
+ exclude empty .got sections.
+
2011-04-11 H.J. Lu <hongjiu.lu@intel.com>
* elf32-i386.c (elf_i386_reloc_type_lookup): Fix the out of bound
diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c
index 2b15a81..33b27ac 100644
--- a/bfd/elf64-alpha.c
+++ b/bfd/elf64-alpha.c
@@ -2927,7 +2927,8 @@ elf64_alpha_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
linker does that before adjust_dynamic_symbol is called, and
it is that function which decides whether anything needs to
go into these sections. */
- s->flags |= SEC_EXCLUDE;
+ if (!CONST_STRNEQ (name, ".got"))
+ s->flags |= SEC_EXCLUDE;
}
else if ((s->flags & SEC_HAS_CONTENTS) != 0)
{