summaryrefslogtreecommitdiffstats
path: root/bfd/elf-eh-frame.c
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2004-11-15 09:09:13 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2004-11-15 09:09:13 +0000
commitf4a6705cf87d44e639f82031a03dfccb3c3c621e (patch)
tree529e3d45b5cb692f8fb15628ffaf876b35dfacdf /bfd/elf-eh-frame.c
parent62d569323650b64cc83dd588b0f130bd6ea5e30a (diff)
downloadppe42-binutils-f4a6705cf87d44e639f82031a03dfccb3c3c621e.tar.gz
ppe42-binutils-f4a6705cf87d44e639f82031a03dfccb3c3c621e.zip
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Deal with
composite relocations against the personality data.
Diffstat (limited to 'bfd/elf-eh-frame.c')
-rw-r--r--bfd/elf-eh-frame.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c
index c4cf46f65c..7468eef4f5 100644
--- a/bfd/elf-eh-frame.c
+++ b/bfd/elf-eh-frame.c
@@ -498,7 +498,10 @@ _bfd_elf_discard_section_eh_frame
cie.personality = h;
}
- cookie->rel++;
+ /* Cope with MIPS-style composite relocations. */
+ do
+ cookie->rel++;
+ while (GET_RELOC (buf) != NULL);
}
buf += per_width;
}
OpenPOWER on IntegriCloud