From: Daniel Jacobowitz Date: Sun, 21 Sep 2003 19:24:52 +0000 (+0000) Subject: * elf64-alpha.c (elf64_alpha_create_got_section): Initialize X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61bcf373982ba67b309cfef137f0afa2f6cbf0c0;p=binutils-gdb.git * elf64-alpha.c (elf64_alpha_create_got_section): Initialize ->got if the section already exists. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 6af4a6a1b92..9452f98352d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2003-09-21 Daniel Jacobowitz + + * elf64-alpha.c (elf64_alpha_create_got_section): Initialize + ->got if the section already exists. + 2003-09-19 Nathan Sidwell * dwarf2.c (decode_line_info): Cope with an initially empty diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c index 0b64bd310f8..a3f81ebac1b 100644 --- a/bfd/elf64-alpha.c +++ b/bfd/elf64-alpha.c @@ -2467,8 +2467,13 @@ elf64_alpha_create_got_section(abfd, info) { asection *s; - if (bfd_get_section_by_name (abfd, ".got")) - return TRUE; + if ((s = bfd_get_section_by_name (abfd, ".got"))) + { + /* Check for a non-linker created .got? */ + if (alpha_elf_tdata (abfd)->got == NULL) + alpha_elf_tdata (abfd)->got = s; + return TRUE; + } s = bfd_make_section (abfd, ".got"); if (s == NULL