PATCH COMMITTED: Implement --wrap in gold

Ian Lance Taylor iant@google.com
Wed Apr 9 00:51:00 GMT 2008


I committed this patch to implement the --wrap option in gold.  It
should be self-explanatory.  I implemented target support for a
special wrap character, as in GNU ld, although no target requires it
yet.  In GNU ld it is used for 64-bit PowerPC.

Ian


2008-04-08  Ian Lance Taylor  <iant@google.com>

	* options.h (class General_options): Define --wrap as a special
	option.  Add wrap_symbols_ field.
	(General_options::any_wrap_symbols): New function.
	(General_options::is_wrap_symbol): New function.
	* options.cc (General_options::parse_wrap): New function.
	(General_options::General_options): Initialize wrap_symbols_.
	* symtab.cc (Symbol_table::wrap_symbol): New function.
	(Symbol_table::add_from_object): Handle --wrap.
	* symtab.h (class Symbol_table): Declare wrap_symbol.
	* target.h (Target::wrap_char): New function.
	(Target::Target_info): Add wrap_char field.
	* i386.cc (Target_i386::i386_info): Initialize wrap_char.
	* x86_64.cc (Target_x86_64::x86_64_info): Likewise.
	* testsuite/testfile.cc (Target_test::test_target_info):
	Likewise.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 8965 bytes
Desc: Implement --wrap
URL: <https://sourceware.org/pipermail/binutils/attachments/20080409/733d5347/attachment.bin>


More information about the Binutils mailing list