diff options
author | Dave Anglin <dave.anglin@nrc.ca> | 2003-10-17 16:43:14 +0000 |
---|---|---|
committer | Dave Anglin <dave.anglin@nrc.ca> | 2003-10-17 16:43:14 +0000 |
commit | 4b71bec021130a4ed50378864ef1807083c78adc (patch) | |
tree | 1ddc31bcffddbda5cfecad8091ad810f1ef634d5 /bfd/elf32-hppa.c | |
parent | 48c6672556ca8a5b964e1d7899d1c411ece1899d (diff) | |
download | gdb-4b71bec021130a4ed50378864ef1807083c78adc.zip gdb-4b71bec021130a4ed50378864ef1807083c78adc.tar.gz gdb-4b71bec021130a4ed50378864ef1807083c78adc.tar.bz2 |
* elf32-hppa.c (elf32_hppa_relocate_section): Skip relocation if
output section has been discarded.
Diffstat (limited to 'bfd/elf32-hppa.c')
-rw-r--r-- | bfd/elf32-hppa.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/elf32-hppa.c b/bfd/elf32-hppa.c index be0727f..0c5e215 100644 --- a/bfd/elf32-hppa.c +++ b/bfd/elf32-hppa.c @@ -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 |