[patch] Fix for BZ 16381 -- explicit loader invocation "ld.so ./a.out" on a PIE binary calls global ctors twice
Paul Pluzhnikov
ppluzhnikov@google.com
Fri Jan 17 23:42:00 GMT 2014
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.
More information about the Libc-alpha
mailing list