From ed88c97ee7df7c5464a536064a9fc8808d997a3e Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Sat, 22 Jan 2011 10:16:29 +0000 Subject: 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. --- ld/ChangeLog | 5 +++++ ld/plugin.c | 2 ++ 2 files changed, 7 insertions(+) (limited to 'ld') diff --git a/ld/ChangeLog b/ld/ChangeLog index fe66fb8..cdc34d6 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2011-01-22 Richard Sandiford + + * plugin.c (plugin_get_ir_dummy_bfd): Copy across the bfd's + private data and GP size. + 2011-01-21 Alan Modra * ldexp.c (fold_binary): Set result section for arithmetic and diff --git a/ld/plugin.c b/ld/plugin.c index 05379b8..b285787 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, -- cgit v1.1