PATCH COMMITTED: Implement --wrap in gold

Ian Lance Taylor
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.


2008-04-08  Ian Lance Taylor  <>

	* 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.
	* (General_options::parse_wrap): New function.
	(General_options::General_options): Initialize wrap_symbols_.
	* (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.
	* (Target_i386::i386_info): Initialize wrap_char.
	* (Target_x86_64::x86_64_info): Likewise.
	* testsuite/ (Target_test::test_target_info):

-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 8965 bytes
Desc: Implement --wrap
URL: <>

More information about the Binutils mailing list