This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: __RUNTIME_PSEUDO_RELOC_LIST__
- From: egor duda <deo at logos-m dot ru>
- To: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- Cc: cygwin-apps at cygwin dot com, binutils at sources dot redhat dot com
- Date: Tue, 8 Oct 2002 11:05:21 +0400
- Subject: Re: __RUNTIME_PSEUDO_RELOC_LIST__
- Organization: deo
- References: <20021007224705.5090.qmail@web21407.mail.yahoo.com>
- Reply-to: egor duda <cygwin-apps at cygwin dot com>
Hi!
Tuesday, 08 October, 2002 Danny Smith danny_r_smith_2001@yahoo.co.nz wrote:
DS> The __RUNTIME_PSEUDO_RELOC_LIST__ addition to ldscripts causes problems
DS> with ld -r -o foo.o bar.o baz.o because of multiple definitions. This
DS> change fixes that problem, but how will it affect intended usage of the
DS> -auto-import extension?
I suppose it won't affect it. We care about __RUNTIME_PSEUDO_RELOC_LIST__
being defined only in final executable. So, this patch looks correct
to me.
DS> --- pe.sc.orig Sun Sep 29 05:26:05 2002
DS> +++ pe.sc Mon Oct 07 23:04:11 2002
DS> @@ -85,11 +85,11 @@ SECTIONS
DS> *(.rdata)
DS> ${R_RDATA}
DS> *(.eh_frame)
DS> - ___RUNTIME_PSEUDO_RELOC_LIST__ = .;
DS> - __RUNTIME_PSEUDO_RELOC_LIST__ = .;
DS> + ${RELOCATING+___RUNTIME_PSEUDO_RELOC_LIST__ = .;}
DS> + ${RELOCATING+__RUNTIME_PSEUDO_RELOC_LIST__ = .;}
DS> *(.rdata_runtime_pseudo_reloc)
DS> - ___RUNTIME_PSEUDO_RELOC_LIST_END__ = .;
DS> - __RUNTIME_PSEUDO_RELOC_LIST_END__ = .;
DS> + ${RELOCATING+___RUNTIME_PSEUDO_RELOC_LIST_END__ = .;}
DS> + ${RELOCATING+__RUNTIME_PSEUDO_RELOC_LIST_END__ = .;}
DS> }
Egor. mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19