This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch][gold] Fix PR11604


With the attached patch gold can, with the llvm plugin, pass the test in

http://llvm.org/releases/2.6/docs/LinkTimeOptimization.html

The last remaining issue was that the delayed layout would add back a
section the garbage collector decided was not needed.

I have ported the test to use the test plugin by checking in the original
.syms file but a .c file that reflects what LTO can do with it.

2010-05-23  Rafael Espindola  <espindola@google.com>

	PR 11604
	* gold/object.cc(Sized_relobj::do_layout_deferred_sections): Avoid
	adding sections the garbage collector removed.
	* gold/testsuite/Makefile.am: Add test.
	* gold/testsuite/Makefile.in: Regenerate.
	* gold/testsuite/plugin_test_7.sh: New.
	* gold/testsuite/plugin_test_7_1.c: New.
	* gold/testsuite/plugin_test_7_1.syms: New.
	* gold/testsuite/plugin_test_7_2.c: New.

Cheers,
-- 
Rafael Ãvila de EspÃndola

Attachment: gc-plugin.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]