aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2002-09-27 20:03:29 +0000
committerDavid Carlton <carlton@bactrian.org>2002-09-27 20:03:29 +0000
commit3e844c0ae62d377296dd9ec86ed60641ae12bbee (patch)
treefe02a7723a8a012acf831f98d7d17e033bb2a4fa /bfd/elflink.h
parent9e5e2fe9360dc6ac81b0616c447c6ceec0aca661 (diff)
downloadgdb-3e844c0ae62d377296dd9ec86ed60641ae12bbee.zip
gdb-3e844c0ae62d377296dd9ec86ed60641ae12bbee.tar.gz
gdb-3e844c0ae62d377296dd9ec86ed60641ae12bbee.tar.bz2
Merge with mainline; tag is carlton_dictionary-20020927-merge
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);
}