From f4a6705cf87d44e639f82031a03dfccb3c3c621e Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Mon, 15 Nov 2004 09:09:13 +0000 Subject: [PATCH] * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Deal with composite relocations against the personality data. --- bfd/ChangeLog | 5 +++++ bfd/elf-eh-frame.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f016362e2a7..43d5e45ef8c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2004-11-14 Richard Sandiford + + * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Deal with + composite relocations against the personality data. + 2004-11-13 Paul Brook * bfd/elf32-arm.c (elf32_arm_final_link_relocate): Resolve diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c index c4cf46f65cc..7468eef4f5a 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; }