This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] ld/emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for "-r" option.
- From: Alan Modra <amodra at gmail dot com>
- To: Chen Gang <xili_gchen_5257 at hotmail dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 24 Mar 2015 10:53:20 +1030
- Subject: Re: [PATCH] ld/emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for "-r" option.
- Authentication-results: sourceware.org; auth=none
- References: <BLU437-SMTP319D820D4080183F6DB12CB90F0 at phx dot gbl>
On Sat, Mar 21, 2015 at 11:20:04PM +0800, Chen Gang wrote:
> * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for "-r"
> option.
This looks OK, except
> +# For ld -r, skip OTHER_BSS_SECTIONS, or will cause multiple definition.
> +OTHER_BSS_SECTIONS="";
> +if [ "x${LD_FLAG}" != "xr" ]; then
this should test $RELOCATING instead of $LD_FLAG.
--
Alan Modra
Australia Development Lab, IBM