freebsd-dev/libexec/rtld-elf
John Baldwin 9abeb029d4 The runtime linker needs to include a path to itself in the link map
it exports to the debugger.  It currently has two choices: it can use
a compiled-in path (/libexec/ld-elf.so.1) or it can use the path stored
in the interpreter path in the binary being executed.  The runtime linker
currently prefers the second.  However, this is usually wrong for compat32
binaries since the binary specifies the path of rtld on a 32-bit system
(/libexec/ld-elf.so.1) instead of the actual path (/libexec/ld-elf32.so.1).
For now, always assume the compiled in path (/libexec/ld-elf32.so.1) as
the rtld path and ignore the path in the binary for the 32-bit runtime
linker.

Differential Revision:	https://reviews.freebsd.org/D1236
Reviewed by:	kib
2014-12-02 16:22:08 +00:00
..
amd64 Optimize r270798, only do the second pass over non-plt relocations 2014-08-29 10:43:56 +00:00
arm IFUNC symbol type shall be processed for non-PLT relocations, 2014-08-29 09:29:10 +00:00
i386 Optimize r270798, only do the second pass over non-plt relocations 2014-08-29 10:43:56 +00:00
mips IFUNC symbol type shall be processed for non-PLT relocations, 2014-08-29 09:29:10 +00:00
powerpc IFUNC symbol type shall be processed for non-PLT relocations, 2014-08-29 09:29:10 +00:00
powerpc64 IFUNC symbol type shall be processed for non-PLT relocations, 2014-08-29 09:29:10 +00:00
sparc64 IFUNC symbol type shall be processed for non-PLT relocations, 2014-08-29 09:29:10 +00:00
tests Fix "make checkdpadd" by "spoofing" DPADD 2014-08-26 09:01:11 +00:00
debug.c Rtld links with the specially built pic static libc library to get some 2011-08-24 20:05:13 +00:00
debug.h Use C99's varadic macro syntax instead of gcc's. 2006-03-28 18:26:47 +00:00
libmap.c Always check the limits of array index variables before using them. 2014-08-21 02:40:33 +00:00
libmap.h Make the directory mapping functionality, which was previously only 2013-09-21 21:03:52 +00:00
Makefile Convert to LIBADD 2014-11-25 21:18:18 +00:00
malloc.c Before calling mmap() on a shared library's text and data sections, rtld 2014-04-11 16:55:25 +00:00
map_object.c Before calling mmap() on a shared library's text and data sections, rtld 2014-04-11 16:55:25 +00:00
rtld_lock.c Right now, the rtld prefork hook locks the rtld bind lock in the read 2014-05-24 10:23:06 +00:00
rtld_lock.h Implement support for ELF filters in rtld. Both normal and auxillary 2010-12-25 08:51:20 +00:00
rtld_printf.c Add the LD_LIBRARY_PATH_FDS environmental variable. 2014-06-20 17:08:32 +00:00
rtld_printf.h Add the LD_LIBRARY_PATH_FDS environmental variable. 2014-06-20 17:08:32 +00:00
rtld_tls.h Add support for Thread Local Storage. 2004-08-03 08:51:00 +00:00
rtld.1 mdoc: remove superfluous paragraph macros. 2014-06-23 18:40:21 +00:00
rtld.c The runtime linker needs to include a path to itself in the link map 2014-12-02 16:22:08 +00:00
rtld.h Optimize r270798, only do the second pass over non-plt relocations 2014-08-29 10:43:56 +00:00
Symbol.map - Export the function added in r265456 rather than the non-existent 2014-05-07 17:21:22 +00:00
xmalloc.c Increase alignment to size of pointer if the alignment is too small. 2014-02-22 11:06:48 +00:00