From 6452a567da6f4098a453410c6f21f63ad87af265 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 12 Apr 2011 23:23:02 +0000 Subject: * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Do not exclude empty .got sections. --- bfd/ChangeLog | 5 +++++ bfd/elf64-alpha.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'bfd') 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 + + * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Do not + exclude empty .got sections. + 2011-04-11 H.J. Lu * 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) { -- cgit v1.1