aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-alpha.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-09-21 19:24:52 +0000
committerDaniel Jacobowitz <drow@false.org>2003-09-21 19:24:52 +0000
commit61bcf373982ba67b309cfef137f0afa2f6cbf0c0 (patch)
treeb31bc304f8a203d6422055f2f7e9f01650883b7e /bfd/elf64-alpha.c
parenta38c9fe6f444e8e26d56d9dd4c057f743b6e09fa (diff)
downloadgdb-61bcf373982ba67b309cfef137f0afa2f6cbf0c0.zip
gdb-61bcf373982ba67b309cfef137f0afa2f6cbf0c0.tar.gz
gdb-61bcf373982ba67b309cfef137f0afa2f6cbf0c0.tar.bz2
* elf64-alpha.c (elf64_alpha_create_got_section): Initialize
->got if the section already exists.
Diffstat (limited to 'bfd/elf64-alpha.c')
-rw-r--r--bfd/elf64-alpha.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c
index 0b64bd3..a3f81eb 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