This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [gold][patch] Fix two plugin bugs
Cary Coutant <ccoutant@google.com> writes:
> * object.cc (Sized_relobj::do_layout): Defer layout for reloc sections.
> (Sized_relobj::do_layout_deferred_sections): Do layout for deferred
> reloc sections.
> * object.h (Sized_relobj::deferred_layout_relocs_): New data member.
>
> PR 11683
> * symtab.h (Symbol::is_placeholder): New member function.
> * target-reloc.h (relocate_section): Check for placeholder symbols.
>
> * testsuite/Makefile.am (plugin_test_8): New test.
> (plugin_test_9): New test.
> * testsuite/Makefile.in: Regenerate.
> +two_file_test_1c.syms: two_file_test_1.syms two_file_test_1c.o
> + cp two_file_test_1.syms $@
> + grep "_Z4t16av" two_file_test_1b.syms >> $@
Use a temporary file here rather than creating a possibly invalid
target file; e.g., see many_sections_check.h.
This is OK with that change.
Thanks.
Ian