summaryrefslogtreecommitdiff
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
commite40eb1da776d02de040a7a4d5f104d857559551c (patch)
tree40fa797f214cbd91e661218189d43d9f5075e910 /bfd/elf64-alpha.c
parentb8b86d08558db7b7e10721813b21121b2bf0a9b0 (diff)
downloadbinutils-redhat-e40eb1da776d02de040a7a4d5f104d857559551c.tar.gz
* 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 2b15a81c08..33b27ac6d3 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)
{