aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-eh-frame.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-09-23 10:52:03 +0000
committerAlan Modra <amodra@gmail.com>2002-09-23 10:52:03 +0000
commitad34bc37c1fa08cd30568395f5381fdd474f0624 (patch)
tree9a46e0e8993338070f8847be41b600d679219a7d /bfd/elf-eh-frame.c
parent5e08c13d7280b7e2c82d97ac3080bb1d5599feee (diff)
downloadfsf-binutils-gdb-ad34bc37c1fa08cd30568395f5381fdd474f0624.zip
fsf-binutils-gdb-ad34bc37c1fa08cd30568395f5381fdd474f0624.tar.gz
fsf-binutils-gdb-ad34bc37c1fa08cd30568395f5381fdd474f0624.tar.bz2
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Zero relocs
for discarded FDEs. Remove redundant assignment. * elflink.h (elf_bfd_discard_info): Save edited relocs.
Diffstat (limited to 'bfd/elf-eh-frame.c')
-rw-r--r--bfd/elf-eh-frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c
index eb4a69b..e80fc6c 100644
--- a/bfd/elf-eh-frame.c
+++ b/bfd/elf-eh-frame.c
@@ -632,11 +632,11 @@ _bfd_elf_discard_section_eh_frame (abfd, info, sec, ehdrsec,
goto free_no_table;
if ((*reloc_symbol_deleted_p) (buf - ehbuf, cookie))
{
- cookie->rel = rel;
/* This is a FDE against discarded section, it should
be deleted. */
new_size -= hdr.length + 4;
sec_info->entry[sec_info->count].removed = 1;
+ memset (rel, 0, sizeof (*rel));
}
else
{