* elf32-hppa.c (elf32_hppa_relocate_section): Skip relocation if
authorDave Anglin <dave.anglin@nrc.ca>
Fri, 17 Oct 2003 16:43:14 +0000 (16:43 +0000)
committerDave Anglin <dave.anglin@nrc.ca>
Fri, 17 Oct 2003 16:43:14 +0000 (16:43 +0000)
output section has been discarded.

bfd/ChangeLog
bfd/elf32-hppa.c

index 33dc6c094c3951a96bc8c7cd84362d43e4e40333..9efe0362bbc156c75003741083669ab234c929c9 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * elf32-hppa.c (elf32_hppa_relocate_section): Skip relocation if
+       output section has been discarded.
+
 2003-10-17  Shrinivas Atre  <shrinivasa@KPITCummins.com>
        
        * coff-h8300.c (funcvec_hash_newfunc): Handle normal mode.
index be0727f46bbf49e2ece950ceb2ea097b39831eae..0c5e2154eb10c93d440041b5da688ffc454ba5b3 100644 (file)
@@ -3739,6 +3739,11 @@ elf32_hppa_relocate_section (bfd *output_bfd,
                      && sym_sec->output_section != NULL
                      && ! bfd_is_abs_section (sym_sec))
                    {
+                     /* Skip this relocation if the output section has
+                        been discarded.  */
+                     if (bfd_is_abs_section (sym_sec->output_section))
+                       break;
+
                      indx = elf_section_data (sym_sec->output_section)->dynindx;
                      /* We are turning this relocation into one
                         against a section symbol, so subtract out the