This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Fix references to __ehdr_start when it cannot be defined
- From: Alan Modra <amodra at gmail dot com>
- To: Roland McGrath <mcgrathr at google dot com>
- Cc: "Maciej W. Rozycki" <macro at codesourcery dot com>, "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Tue, 19 Nov 2013 12:19:56 +1030
- Subject: Re: [PATCH] Fix references to __ehdr_start when it cannot be defined
- Authentication-results: sourceware.org; auth=none
- References: <CAB=4xhrAu+MTMR2OTyxvSr-zUXdi=WC7-47AmuQqoVL3tOccvA at mail dot gmail dot com> <alpine dot DEB dot 1 dot 10 dot 1311080008160 dot 21686 at tp dot orcam dot me dot uk> <CAB=4xhr_eQE41vMk1LAy4pEk7HUQC55QrddE7pvYp9AbijT+1w at mail dot gmail dot com> <20131116074950 dot GG22514 at bubble dot grove dot modra dot org> <CAB=4xhp8rKxzsmqtdfp15eUVhC1Yy5Jn=Og=9woxYhWpsAU+8A at mail dot gmail dot com>
On Mon, Nov 18, 2013 at 03:03:40PM -0800, Roland McGrath wrote:
> ld/
> 2013-11-18 Roland McGrath <mcgrathr@google.com>
> Alan Modra <amodra@gmail.com>
>
> * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
> Don't use bfd_elf_record_link_assignment to mark __ehdr_start
> hidden. Instead, just do it directly here, and only if it was
> referenced but not defined.
>
> ld/testsuite/
> 2013-11-18 Roland McGrath <mcgrathr@google.com>
>
> * ld-elf/ehdr_start-userdef.t: New file.
> * ld-elf/ehdr_start-userdef.d: New file.
> * ld-elf/ehdr_start-strongref.s: New file.
> * ld-elf/ehdr_start-missing.t: New file.
> * ld-elf/ehdr_start-missing.d: New file.
> * ld-elf/ehdr_start-weak.d: New file.
> * ld-mips-elf/ehdr_start-2.nd: Expect __ehdr_start to be global.
OK.
--
Alan Modra
Australia Development Lab, IBM