This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix for BZ 16381 -- explicit loader invocation "ld.so ./a.out" on a PIE binary calls global ctors twice


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]