aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
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/elflink.h
parent5e08c13d7280b7e2c82d97ac3080bb1d5599feee (diff)
downloadgdb-ad34bc37c1fa08cd30568395f5381fdd474f0624.zip
gdb-ad34bc37c1fa08cd30568395f5381fdd474f0624.tar.gz
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/elflink.h')
-rw-r--r--bfd/elflink.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 2df334b..85160e9 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -8482,7 +8482,12 @@ elf_bfd_discard_info (output_bfd, info)
if (_bfd_elf_discard_section_eh_frame (abfd, info, eh, ehdr,
elf_reloc_symbol_deleted_p,
&cookie))
- ret = true;
+ {
+ /* Relocs have been edited. Ensure edited version is
+ used later in relocate_section. */
+ elf_section_data (eh)->relocs = cookie.rels;
+ ret = true;
+ }
if (cookie.rels && elf_section_data (eh)->relocs != cookie.rels)
free (cookie.rels);
}