This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH][GOLD] Add -z nocopyreloc option.
- From: Ian Lance Taylor <iant at google dot com>
- To: Doug Kwan (éæå) <dougkwan at google dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 30 Sep 2009 17:51:13 -0700
- Subject: Re: [PATCH][GOLD] Add -z nocopyreloc option.
- References: <498552560909301633m9ead633v9cf1a4b711fe862a@mail.gmail.com> <mcrtyykxa4q.fsf@dhcp-172-17-9-151.mtv.corp.google.com> <498552560909301732i6b6f9403vd83917f44031623c@mail.gmail.com>
"Doug Kwan (éæå)" <dougkwan@google.com> writes:
> 2009-09-30 Doug Kwan <dougkwan@google.com>
>
> * arm.cc (Target_arm::may_need_copy_reloc): Check for THUMB function
> symbol and call Symbol::may_need_copy_reloc to determine if
> a copy reloc is needed.
> * copy-relocs.cc (Copy_relocs::need_copy_reloc): Return false if -z
> nocopyreloc is given in command line.
> (Copy_relocs::emit_copy_reloc): Assert that -z nocopyreloc is not
> given in command line.
> * i386.cc (Target_i386::may_need_copy_reloc): Remove.
> (Target_i386::Scan::global): Use Symbol::may_need_copy_reloc instead
> of the removed Target_i386::may_need_copy_reloc.
> * options.h (copyreloc): New option with default value false.
> * powerpc.cc (Target_powerpc::may_need_copy_reloc): Remove.
> (Target_powerpc::Scan::global): Use Symbol::may_need_copy_reloc
> instead of the removed Target_powerpc::may_need_copy_reloc.
> * sparc.cc (Target_powerpc::may_need_copy_reloc): Remove.
> (Target_sparc::Scan::global): Use Symbol::may_need_copy_reloc
> instead of the removed Target_sparc::may_need_copy_reloc.
> * symtab.h (Symbol::may_need_copy_reloc): New method definition.
> * x86_64.cc (Target_powerpc::may_need_copy_reloc): Remove.
> (Target_x86_64::Scan::global): Use Symbol::may_need_copy_reloc
> instead of the removed Target_x86_64::may_need_copy_reloc.
This is OK.
Thanks.
Ian