From: Dave Anglin Date: Fri, 17 Oct 2003 16:43:14 +0000 (+0000) Subject: * elf32-hppa.c (elf32_hppa_relocate_section): Skip relocation if X-Git-Tag: carlton-dictionary-20031111-merge~237 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=71ef19f98b64b57310f75e5c718178a063d04d47;p=pf3gnuchains%2Fpf3gnuchains4x.git * elf32-hppa.c (elf32_hppa_relocate_section): Skip relocation if output section has been discarded. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 33dc6c094c..9efe0362bb 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2003-10-17 John David Anglin + + * elf32-hppa.c (elf32_hppa_relocate_section): Skip relocation if + output section has been discarded. + 2003-10-17 Shrinivas Atre * coff-h8300.c (funcvec_hash_newfunc): Handle normal mode. 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