aboutsummaryrefslogtreecommitdiff
path: root/ld/ChangeLog
diff options
context:
space:
mode:
authorKwok Cheung Yeung <kcy@codesourcery.com>2015-12-10 16:11:07 +0000
committerKwok Cheung Yeung <kcy@codesourcery.com>2015-12-10 16:12:33 +0000
commit4a07dc81356ed8728e204e9aabeb256703c59aef (patch)
tree8309af8857ed7f07c40f05ce3ab88e65a35d4ca9 /ld/ChangeLog
parent6479e48ef9e7345e1111ed9fe578babd74faa1ef (diff)
downloadgdb-4a07dc81356ed8728e204e9aabeb256703c59aef.zip
gdb-4a07dc81356ed8728e204e9aabeb256703c59aef.tar.gz
gdb-4a07dc81356ed8728e204e9aabeb256703c59aef.tar.bz2
ld: Fix LTO for MinGW targets
When creating a dummy BFD for an IR file, the output BFD is used as a template for the new BFD, when it needs to be the input BFD passed into the function when not dealing with a BFD plugin. On most targets this is not an issue as the input and output formats are the same anyway, but on MinGW targets, there are two variant formats used (pe-i386/pe-x86-64 and pei-i386/pei-x86-64) which are similar but not interchangeable here. PR ld/18199 * plugin.c (plugin_get_ir_dummy_bfd): Use srctemplate as the template when calling bfd_create if it does not use the BFD plugin target vector.
Diffstat (limited to 'ld/ChangeLog')
-rw-r--r--ld/ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 0f622d0..576e3dc 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,10 @@
+2015-12-10 Kwok Cheung Yeung <kcy@codesourcery.com>
+
+ PR ld/18199
+ * plugin.c (plugin_get_ir_dummy_bfd): Use srctemplate as the
+ template when calling bfd_create if it does not use the BFD
+ plugin target vector.
+
2015-12-02 Alan Modra <amodra@gmail.com>
* configure.ac (--enable-initfini-array): Remove run test. Default