diff options
author | Richard Sandiford <rsandifo@nildram.co.uk> | 2011-01-22 10:16:28 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@nildram.co.uk> | 2011-01-22 10:16:28 +0000 |
commit | d832f3968b7d2d806fe1478b2138b2213d955c90 (patch) | |
tree | e75cf8e04fabc0c18510351374cc5c050b3f70d3 /ld | |
parent | 08f7723e1227e06974d50ad6a1b9c3c5038cc134 (diff) | |
download | binutils-redhat-d832f3968b7d2d806fe1478b2138b2213d955c90.tar.gz |
bfd/
* elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore
common sections too.
ld/
* plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's
private data and GP size.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/plugin.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index fe66fb886d..cdc34d6a8e 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2011-01-22 Richard Sandiford <rdsandiford@googlemail.com> + + * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's + private data and GP size. + 2011-01-21 Alan Modra <amodra@gmail.com> * ldexp.c (fold_binary): Set result section for arithmetic and diff --git a/ld/plugin.c b/ld/plugin.c index 05379b8e61..b285787694 100644 --- a/ld/plugin.c +++ b/ld/plugin.c @@ -237,6 +237,8 @@ plugin_get_ir_dummy_bfd (const char *name, bfd *srctemplate) srctemplate); bfd_set_arch_info (abfd, bfd_get_arch_info (srctemplate)); bfd_make_writable (abfd); + bfd_copy_private_bfd_data (srctemplate, abfd); + bfd_set_gp_size (abfd, bfd_get_gp_size (abfd)); /* Create a minimal set of sections to own the symbols. */ sec = bfd_make_section_old_way (abfd, ".text"); bfd_set_section_flags (abfd, sec, |