aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-alpha.c
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/elf64-alpha.c
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/elf64-alpha.c')
-rw-r--r--bfd/elf64-alpha.c3
1 files changed, 2 insertions, 1 deletions
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)
{