diff options
author | Alan Modra <amodra@gmail.com> | 2003-07-04 04:58:03 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2003-07-04 04:58:03 +0000 |
commit | 2293c4998ce237a8a235fb9efb3b756c9666e0dc (patch) | |
tree | 7648b40ba300f430104ec7123f70c595edcd90df /bfd/elf32-sparc.c | |
parent | 003d627e6e3f1826116f57ee1b986e0519585f63 (diff) | |
download | gdb-2293c4998ce237a8a235fb9efb3b756c9666e0dc.zip gdb-2293c4998ce237a8a235fb9efb3b756c9666e0dc.tar.gz gdb-2293c4998ce237a8a235fb9efb3b756c9666e0dc.tar.bz2 |
* elf32-sparc.c (elf32_sparc_check_relocs): Don't call
create_got_section if we already have done so.
* elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
(sh_elf_check_relocs): Likewise.
(sh_elf_adjust_dynamic_symbol): Delete "dynobj" var. Use
htab->root.dynobj instead.
(sh_elf_check_relocs): Likewise.
(sh_elf_finish_dynamic_sections): Likewise.
Diffstat (limited to 'bfd/elf32-sparc.c')
-rw-r--r-- | bfd/elf32-sparc.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bfd/elf32-sparc.c b/bfd/elf32-sparc.c index 83d4c47..ac10184 100644 --- a/bfd/elf32-sparc.c +++ b/bfd/elf32-sparc.c @@ -1024,10 +1024,13 @@ elf32_sparc_check_relocs (abfd, info, sec, relocs) } } - if (htab->elf.dynobj == NULL) - htab->elf.dynobj = abfd; - if (!create_got_section (htab->elf.dynobj, info)) - return FALSE; + if (htab->sgot == NULL) + { + if (htab->elf.dynobj == NULL) + htab->elf.dynobj = abfd; + if (!create_got_section (htab->elf.dynobj, info)) + return FALSE; + } break; case R_SPARC_TLS_GD_CALL: |