This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[hjl/lto-mixed] PATCH: Remove IRONLY_SUFFIX
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Cc: Dave Korn <dave dot korn dot cygwin at gmail dot com>
- Date: Tue, 11 Jan 2011 10:27:36 -0800
- Subject: [hjl/lto-mixed] PATCH: Remove IRONLY_SUFFIX
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi Dave,
I don't believe IRONLY_SUFFIX is needed for 2 stage linker. Will it
cause any problems on Windows for you?
Thanks.
H.J.
---
diff --git a/ld/ChangeLog.lto-mixed b/ld/ChangeLog.lto-mixed
index cb75156..306a1f6 100644
--- a/ld/ChangeLog.lto-mixed
+++ b/ld/ChangeLog.lto-mixed
@@ -1,3 +1,8 @@
+2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
+
+ * plugin.c (IRONLY_SUFFIX): Removed.
+ (plugin_get_ir_dummy_bfd): Updated.
+
2011-01-09 H.J. Lu <hongjiu.lu@intel.com>
* ldlang.c (lang_startup): Call cmdline_option_prepend with
diff --git a/ld/plugin.c b/ld/plugin.c
index 377a840..cdabd8f 100644
--- a/ld/plugin.c
+++ b/ld/plugin.c
@@ -36,11 +36,6 @@
#include <Windows.h>
#endif
-/* The suffix to append to the name of the real (claimed) object file
- when generating a dummy BFD to hold the IR symbols sent from the
- plugin. */
-#define IRONLY_SUFFIX ".ironly\004"
-
/* Stores a single argument passed to a plugin. */
typedef struct plugin_arg
{
@@ -240,8 +235,7 @@ plugin_get_ir_dummy_bfd (const char *name, bfd *srctemplate)
bfd *abfd;
bfd_use_reserved_id = 1;
- abfd = bfd_create (concat (name, IRONLY_SUFFIX, (const char *)NULL),
- srctemplate);
+ abfd = bfd_create (name, srctemplate);
bfd_set_arch_info (abfd, bfd_get_arch_info (srctemplate));
bfd_make_writable (abfd);
abfd->flags |= BFD_PLUGIN_DUMMY;