AMD64 - Fixes to make dynamic binaries run
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 2 Apr 2009 19:59:29 +0000 (12:59 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 2 Apr 2009 19:59:29 +0000 (12:59 -0700)
commit5347affc972353612c88b25509b5f6626e9e384a
treeb2f97983181ffa288aecd05500f4b46567f88a2c
parenta6a0980903ec109b1e924a04c98c5d31f77ff5b9
AMD64 - Fixes to make dynamic binaries run

Fix the Elf64_Auxargs structure.

Misc stuff - Supply the original stack pointer as arg3 to rtld_bind().
Set addr = 0 if no interpreter (static binary).  Enable KTRACE.
Remove unused COPY_SIGCODE.

Taken-from: Loosely taken from FreeBSD, with help from Jordan Gordeev
libexec/rtld-elf/amd64/rtld_start.S
libexec/rtld-elf/rtld.c
sys/config/JG64
sys/cpu/i386/include/cpu.h
sys/kern/imgact_elf.c
sys/sys/imgact_elf.h