[PATCH][GOLD] Add -z nocopyreloc option.
Ian Lance Taylor
iant@google.com
Wed Sep 30 23:53:00 GMT 2009
"Doug Kwan (關振德)" <dougkwan@google.com> writes:
> This patch added a -z nocopyreloc option for compatiblity with ld.
> Tested on x86_64 with no regression.
Please instead add an option -z copyreloc, with an appropriate
nohelpstring argument. You will get the option -z nocopyreloc for
free. That will make the option easier to understand in the code.
Also please take the opportunity to stamp out some duplication. Move
may_need_copy_reloc to be a Symbol function. Change everything except
ARM to just call that function. Change ARM to use
arm_may_need_copy_reloc which can call that and also check for
STT_ARM_TFUNC.
Thanks.
Ian
More information about the Binutils
mailing list