summaryrefslogtreecommitdiff
path: root/bfd/elf32-hppa.c
diff options
context:
space:
mode:
authorDave Anglin <dave.anglin@nrc.ca>2003-10-17 16:43:14 +0000
committerDave Anglin <dave.anglin@nrc.ca>2003-10-17 16:43:14 +0000
commit9ac4eb97fba5da74d0a2032b79e3d95e4c9d0d89 (patch)
tree6caa571a649d8eea78f4d9b327bc4ac684ed2f0a /bfd/elf32-hppa.c
parent928c099a6061019bed56db4dcf342f0b8139a6bc (diff)
downloadbinutils-redhat-9ac4eb97fba5da74d0a2032b79e3d95e4c9d0d89.tar.gz
* 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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/elf32-hppa.c b/bfd/elf32-hppa.c
index be0727f46b..0c5e2154eb 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