gold patch committed: Set size of _GLOBAL_OFFSET_TABLE_

Ian Lance Taylor iant@google.com
Wed Dec 30 07:23:00 GMT 2009


Another patch to quiet elflint.  elflint thinks that the size of the
_GLOBAL_OFFSET_TABLE_ symbol should be the size of the section with
which it is associated.  This is not in the ABI, but seems harmless.
I committed this patch to implement this for 386 and x86_64.

Ian


2009-12-29  Ian Lance Taylor  <iant@google.com>

	PR 10450
	* i386.cc (class Target_i386): Initialize global_offset_table_ in
	constructor.  Add global_offset_table_ field.
	(Target_i386::got_section): Set global_offset_table_.
	(Target_i386::do_finalize_sections): Set global_offset_table_
	size.
	* x86_64.cc (class Target_x86_64): Initialize global_offset_table_
	in constructor.  Add global_offset_table_ field.
	(Target_x86_64::got_section): Set global_offset_table_.
	(Target_x86_64::do_finalize_sections): Set global_offset_table_
	size.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 5212 bytes
Desc: elflint
URL: <https://sourceware.org/pipermail/binutils/attachments/20091230/c84471fc/attachment.bin>


More information about the Binutils mailing list