* elf32-sparc.c (elf32_sparc_check_relocs): Don't call
[deliverable/binutils-gdb.git] / bfd / elf32-sparc.c
index 83d4c47187f0b47f7b109b35ffbbd093b1aad70d..ac1018489044a827cb63455580d11186bc4cf75b 100644 (file)
@@ -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:
This page took 0.025977 seconds and 4 git commands to generate.