aboutsummaryrefslogtreecommitdiff
path: root/arch/i386/reloc.h (follow)
Commit message (Expand)AuthorAgeFilesLines
* make the dynamic linker find its path file relative to its own location•••prior to this change, using a non-default syslibdir was impractical on systems where the ordinary library paths contain musl-incompatible library files. the file containing search paths was always taken from /etc, which would either correspond to a system-wide musl installation, or fail to exist at all, resulting in searching of the default library path. the new search strategy is safe even for suid programs because the pathname used comes from the PT_INTERP header of the program being run, rather than any external input. as part of this change, I have also begun differentiating the names of arch variants that differ by endianness or floating point calling convention. the corresponding changes in the build system and and gcc wrapper script (to use an alternate dynamic linker name) for these configurations have not yet been made. Rich Felker2013-07-181-1/+1
* dynamic-linked TLS support for everything but dlopen'd libs•••currently, only i386 is tested. x86_64 and arm should probably work. the necessary relocation types for mips and microblaze have not been added because I don't understand how they're supposed to work, and I'm not even sure if it's defined yet on microblaze. I may be able to reverse engineer the requirements out of gcc/binutils output. Rich Felker2012-10-041-1/+21
* fix some symbol resolution issues in dynamic linker•••1. search was wrongly beginning with lib itself rather than dso head 2. inconsistent resolution of function pointers for functions in plt Rich Felker2011-06-251-0/+1
* proper path searching for dynamic linker•••first, use $LD_LIBRARY_PATH unless suid. if that fails, read path from /etc/ld-musl-$ARCH.path and fallback to a builtin default. Rich Felker2011-06-251-0/+2
* experimental dynamic linker!•••some notes: - library search path is hard coded - x86_64 code is untested and may not work - dlopen/dlsym is not yet implemented - relocations in read-only memory won't work Rich Felker2011-06-181-0/+26