This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [patch] Fix for BZ 16381 -- explicit loader invocation "ld.so ./a.out" on a PIE binary calls global ctors twice
- From: Paul Pluzhnikov <ppluzhnikov at google dot com>
- To: "Carlos O'Donell" <carlos at redhat dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 27 Jan 2014 07:54:08 -0800
- Subject: Re: [patch] Fix for BZ 16381 -- explicit loader invocation "ld.so ./a.out" on a PIE binary calls global ctors twice
- Authentication-results: sourceware.org; auth=none
- References: <52D20FE1 dot 60102 at google dot com> <52D80FFC dot 60909 at redhat dot com> <CALoOobOXUbNraGsnoXE7XQnCF+J6uDFootHL2O8=OeysA1vCZA at mail dot gmail dot com> <CALoOobPBn7QxCE1rc+EJAcZ2GN8XxSnen0XbH3b5C=2dz-EOdw at mail dot gmail dot com>
On Fri, Jan 17, 2014 at 3:41 PM, Paul Pluzhnikov <ppluzhnikov@google.com> wrote:
> On Fri, Jan 17, 2014 at 3:36 PM, Paul Pluzhnikov <ppluzhnikov@google.com> wrote:
>
>> Attached is a second version of the patch, modified to address Carlos'
>> comments.
>
> ... and I forgot to mention BZ 16381 in the ChangeLog, sorry.
>
> 2014-01-17 Paul Pluzhnikov <ppluzhnikov@google.com>
>
> [BZ #16381]
>
> * elf/Makefile: Add tst-pie2
> * elf/tst-pie2.c: New file.
> * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
> for ET_EXEC.
> * elf/rtld.c (map_doit): Load executable as lt_executable.
> (dl_main): Likewise.
Ping?
--
Paul Pluzhnikov