plugin: Copy the no_export field to the IR dummy object
[deliverable/binutils-gdb.git] / ld / plugin.c
index e253e1aea4261b8a0a5a7fef877b6f709fda723b..af3f9e2ffe88e7d86fca4cba9c7eb78f3bc5f9d4 100644 (file)
@@ -1,5 +1,5 @@
 /* Plugin control for the GNU linker.
-   Copyright (C) 2010-2019 Free Software Foundation, Inc.
+   Copyright (C) 2010-2020 Free Software Foundation, Inc.
 
    This file is part of the GNU Binutils.
 
@@ -336,7 +336,7 @@ plugin_get_ir_dummy_bfd (const char *name, bfd *srctemplate)
            return abfd;
        }
     }
-report_error:
+ report_error:
   einfo (_("%F%P: could not create dummy IR bfd: %E\n"));
   return NULL;
 }
@@ -1239,6 +1239,7 @@ plugin_object_p (bfd *ibfd)
       ibfd->plugin_format = bfd_plugin_yes;
       ibfd->plugin_dummy_bfd = abfd;
       bfd_make_readable (abfd);
+      abfd->no_export = ibfd->no_export;
       return abfd->xvec;
     }
   else
This page took 0.025009 seconds and 4 git commands to generate.