freebsd-skq/libexec/rtld-elf
John Baldwin 6a368d16c8 Fix _mips_rtld_bind() to handle ELF filters.
MIPS does not use the common _rtld_bind() to handle runtime binding.
Instead, it uses a private _mips_rtld_bind().  Update _mips_rtld_bind()
to include the changes made to _rtld_bind() in r216695 and r218476 to
support upgrading the read-locked rtld_bind_lock to a write lock when
an object with a filter is encountered.

While here, add a 'where' variable to track the location of the fixup
in the GOT to make the code flow more closely match _rtld_bind().

Reviewed by:	kib
Obtained from:	CheriBSD
Sponsored by:	DARPA / AFRL
Differential Revision:	https://reviews.freebsd.org/D8625
2016-11-23 20:21:53 +00:00
..
aarch64 Adjust r308689 to make rtld compilable with either in-tree or 2016-11-21 14:13:57 +00:00
amd64 Adjust r308689 to make rtld compilable with either in-tree or 2016-11-21 14:13:57 +00:00
arm Adjust r308689 to make rtld compilable with either in-tree or 2016-11-21 14:13:57 +00:00
i386 Adjust r308689 to make rtld compilable with either in-tree or 2016-11-21 14:13:57 +00:00
mips Fix _mips_rtld_bind() to handle ELF filters. 2016-11-23 20:21:53 +00:00
powerpc Adjust r308689 to make rtld compilable with either in-tree or 2016-11-21 14:13:57 +00:00
powerpc64 Adjust r308689 to make rtld compilable with either in-tree or 2016-11-21 14:13:57 +00:00
riscv Adjust r308689 to make rtld compilable with either in-tree or 2016-11-21 14:13:57 +00:00
sparc64 Adjust r308689 to make rtld compilable with either in-tree or 2016-11-21 14:13:57 +00:00
tests DIRDEPS_BUILD: Add some missing dirctories to the build. 2016-08-31 19:30:59 +00:00
debug.c
debug.h
libmap.c
libmap.h
Makefile Assert that there is no unresolved symbols during rtld linking. 2016-11-15 09:40:03 +00:00
Makefile.depend
malloc.c
map_object.c
paths.h
rtld_lock.c
rtld_lock.h
rtld_printf.c
rtld_printf.h
rtld_tls.h
rtld_utrace.h Move defines common between rtld and libsysdecode into the header, 2016-08-12 19:31:41 +00:00
rtld.1
rtld.c Fix _mips_rtld_bind() to handle ELF filters. 2016-11-23 20:21:53 +00:00
rtld.h Adjust r308689 to make rtld compilable with either in-tree or 2016-11-21 14:13:57 +00:00
Symbol.map
xmalloc.c