* plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
authorAlan Modra <amodra@gmail.com>
Mon, 25 Oct 2010 06:22:50 +0000 (06:22 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 25 Oct 2010 06:22:50 +0000 (06:22 +0000)
Formatting.

ld/ChangeLog
ld/plugin.c

index 0b0e6073932e817a60ee06832df47efb3308ab3d..a82f4d78dc1d7d64801952d9162c63462064f5a4 100644 (file)
@@ -1,3 +1,8 @@
+2010-10-25  Alan Modra  <amodra@gmail.com>
+
+       * plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
+       Formatting.
+
 2010-10-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to
index efc520f7077ebb75b7ae8ce010f9cd188d3ee240..f03932c096733dde2bf56121c1fa07150696dd6a 100644 (file)
@@ -224,16 +224,18 @@ bfd *
 plugin_get_ir_dummy_bfd (const char *name, bfd *srctemplate)
 {
   asection *sec;
-  bfd *abfd = bfd_create (
-               concat (name, IRONLY_SUFFIX, (const char *)NULL),
-               srctemplate);
+  bfd *abfd;
+
+  bfd_use_reserved_id = 1;
+  abfd = bfd_create (concat (name, IRONLY_SUFFIX, (const char *)NULL),
+                    srctemplate);
   bfd_set_arch_info (abfd, bfd_get_arch_info (srctemplate));
   bfd_make_writable (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,
-       SEC_CODE | SEC_HAS_CONTENTS | SEC_READONLY
-       | SEC_ALLOC | SEC_LOAD | SEC_KEEP);
+                        (SEC_CODE | SEC_HAS_CONTENTS | SEC_READONLY
+                         | SEC_ALLOC | SEC_LOAD | SEC_KEEP));
   sec->output_section = sec;
   sec->output_offset = 0;
   return abfd;