* elf32-hppa.c (elf32_hppa_relocate_section): Skip relocation if

output section has been discarded.
This commit is contained in:
Dave Anglin 2003-10-17 16:43:14 +00:00
parent 48c6672556
commit 4b71bec021
2 changed files with 10 additions and 0 deletions

View 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.

View 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