This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] PR ld/15365: Restrict __ehdr_start's export class (was: RE: [COMMITTED PATCH] Use __ehdr_start, if available, as fallback for AT_PHDR.)
- From: Alan Modra <amodra at gmail dot com>
- To: "Maciej W. Rozycki" <macro at codesourcery dot com>
- Cc: Roland McGrath <roland at hack dot frob dot com>, Steve Ellcey <Steve dot Ellcey at imgtec dot com>, Richard Sandiford <rdsandiford at googlemail dot com>, "GNU C. Library" <libc-alpha at sourceware dot org>, binutils at sourceware dot org
- Date: Fri, 3 May 2013 09:01:11 +0930
- Subject: Re: [PATCH] PR ld/15365: Restrict __ehdr_start's export class (was: RE: [COMMITTED PATCH] Use __ehdr_start, if available, as fallback for AT_PHDR.)
- References: <20130328231733 dot 3F8F12C0A5 at topped-with-meat dot com> <1C0E790D7E4C75418622FD04CC2A1172015DEBEF at bamail02 dot ba dot imgtec dot org> <20130408224718 dot 06CE22C088 at topped-with-meat dot com> <alpine dot DEB dot 1 dot 10 dot 1304222249290 dot 1453 at tp dot orcam dot me dot uk> <20130425003732 dot GS22536 at bubble dot grove dot modra dot org> <alpine dot DEB dot 1 dot 10 dot 1304292331070 dot 1453 at tp dot orcam dot me dot uk>
On Thu, May 02, 2013 at 10:47:04PM +0100, Maciej W. Rozycki wrote:
>
> 2013-05-02 Alan Modra <amodra@gmail.com>
>
> ld/
> * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
> Only call lang_for_each_statement if an ELF hash table is used.
>
> and:
>
> 2013-05-02 Maciej W. Rozycki <macro@codesourcery.com>
>
> gold/
> PR ld/15365
> * layout.cc (Layout::finalize): Make __ehdr_start STV_HIDDEN.
>
> 2013-05-02 Alan Modra <amodra@gmail.com>
>
> ld/
> PR ld/15365
> * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
> Restrict __ehdr_start's export class to no less than STV_HIDDEN.
>
> 2013-05-02 Maciej W. Rozycki <macro@codesourcery.com>
>
> ld/testsuite/
> PR ld/15365
> * ld-elf/ehdr_start.d: Expect __ehdr_start to be STB_LOCAL.
> * ld-mips-elf/ehdr_start-1.nd: New test.
> * ld-mips-elf/ehdr_start-2.nd: New test.
> * ld-mips-elf/ehdr_start-1.ld: New test linker script.
> * ld-mips-elf/ehdr_start-2.ld: New test linker script.
> * ld-mips-elf/ehdr_start-new.s: New test source.
> * ld-mips-elf/ehdr_start-o32.s: New test source.
> * ld-mips-elf/mips-elf.exp: Run the new tests.
OK.
--
Alan Modra
Australia Development Lab, IBM