Fix internal error when using --emit-relocs with plugins.
authorCary Coutant <ccoutant@gmail.com>
Sat, 14 Jul 2018 18:52:27 +0000 (11:52 -0700)
committerCary Coutant <ccoutant@gmail.com>
Sat, 14 Jul 2018 19:44:48 +0000 (12:44 -0700)
commit1074bc6d41f480e9e7b8f2e68f778225da2559b7
treef5536b908069a2e3658013391afc13271021aafa
parent1b115e8e0e051d65d0747f0a8a84eb6453866729
Fix internal error when using --emit-relocs with plugins.

When an .eh_frame section has deferred layout because of plugins, gold
was neglecting to mark the section as deferred. When we later processed
the corresponding relocation section, we were then ignoring it, causing
the internal error later on in the link.

gold/
PR gold/23397
* object.cc (Sized_relobj_file::do_layout): Mark section as deferred.
* testsuite/Makefile.am (plugin_test_1): Add --emit-relocs option to
existing test case.
* testsuite/Makefile.in: Regenerate.
gold/ChangeLog
gold/object.cc
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
This page took 0.024771 seconds and 4 git commands to generate.