aboutsummaryrefslogtreecommitdiff
path: root/ld/plugin.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-03-01 17:07:12 -0800
committerH.J. Lu <hjl.tools@gmail.com>2020-03-01 17:10:49 -0800
commit2aa90762b71af7f04032d2bebed6470070d3d801 (patch)
tree227042b9ed311df00ec6123a1b37632eb9683a08 /ld/plugin.c
parenta4dd6c97bd5c7e2cc58f4d2a0b83145646f67cc7 (diff)
downloadgdb-2aa90762b71af7f04032d2bebed6470070d3d801.zip
gdb-2aa90762b71af7f04032d2bebed6470070d3d801.tar.gz
gdb-2aa90762b71af7f04032d2bebed6470070d3d801.tar.bz2
plugin: Copy the no_export field to the IR dummy object
Copy the no_export field to the IR dummy object when claiming an IR object. PR ld/25618 * plugin.c (plugin_object_p): Copy the no_export field to the IR dummy object. * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Add PR ld/25618 tests. * testsuite/ld-plugin/pr25618.d: New file. * testsuite/ld-plugin/pr25618a.cc: Likewise. * testsuite/ld-plugin/pr25618a.h: Likewise. * testsuite/ld-plugin/pr25618b.cc: Likewise. * testsuite/ld-plugin/pr25618b.h: Likewise.
Diffstat (limited to 'ld/plugin.c')
-rw-r--r--ld/plugin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/plugin.c b/ld/plugin.c
index 23a3145..af3f9e2 100644
--- a/ld/plugin.c
+++ b/ld/plugin.c
@@ -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