glibc/sysdeps
Florian Weimer 5d28a8962d elf: Add _dl_find_object function
It can be used to speed up the libgcc unwinder, and the internal
_dl_find_dso_for_object function (which is used for caller
identification in dlopen and related functions, and in dladdr).

_dl_find_object is in the internal namespace due to bug 28503.
If libgcc switches to _dl_find_object, this namespace issue will
be fixed.  It is located in libc for two reasons: it is necessary
to forward the call to the static libc after static dlopen, and
there is a link ordering issue with -static-libgcc and libgcc_eh.a
because libc.so is not a linker script that includes ld.so in the
glibc build tree (so that GCC's internal -lc after libgcc_eh.a does
not pick up ld.so).

It is necessary to do the i386 customization in the
sysdeps/x86/bits/dl_find_object.h header shared with x86-64 because
otherwise, multilib installations are broken.

The implementation uses software transactional memory, as suggested
by Torvald Riegel.  Two copies of the supporting data structures are
used, also achieving full async-signal-safety.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2021-12-28 22:52:56 +01:00
..
aarch64 malloc: Remove memusage.h 2021-12-28 14:57:57 -03:00
alpha malloc: Remove memusage.h 2021-12-28 14:57:57 -03:00
arc malloc: Remove memusage.h 2021-12-28 14:57:57 -03:00
arm elf: Add _dl_find_object function 2021-12-28 22:52:56 +01:00
csky malloc: Remove memusage.h 2021-12-28 14:57:57 -03:00
generic elf: Add _dl_find_object function 2021-12-28 22:52:56 +01:00
gnu Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
hppa malloc: Remove memusage.h 2021-12-28 14:57:57 -03:00
htl htl: Reimplement GSCOPE 2021-09-16 01:04:17 +02:00
hurd Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
i386 malloc: Remove memusage.h 2021-12-28 14:57:57 -03:00
ia64 malloc: Remove memusage.h 2021-12-28 14:57:57 -03:00
ieee754 s_sincosf.h: Change pio4 type to float [BZ #28713] 2021-12-21 08:56:12 -08:00
m68k malloc: Remove memusage.h 2021-12-28 14:57:57 -03:00
mach elf: Add _dl_find_object function 2021-12-28 22:52:56 +01:00
microblaze malloc: Remove memusage.h 2021-12-28 14:57:57 -03:00
mips malloc: Remove memusage.h 2021-12-28 14:57:57 -03:00
nios2 elf: Add _dl_find_object function 2021-12-28 22:52:56 +01:00
nptl nptl: Add public rseq symbols and <sys/rseq.h> 2021-12-09 09:49:32 +01:00
posix posix: Remove spawni.c 2021-09-27 12:44:25 -03:00
powerpc malloc: Remove memusage.h 2021-12-28 14:57:57 -03:00
pthread nptl: Add one more barrier to nptl/tst-create1 2021-12-10 11:51:25 +01:00
riscv malloc: Remove memusage.h 2021-12-28 14:57:57 -03:00
s390 malloc: Remove memusage.h 2021-12-28 14:57:57 -03:00
sh malloc: Remove memusage.h 2021-12-28 14:57:57 -03:00
sparc malloc: Remove memusage.h 2021-12-28 14:57:57 -03:00
unix elf: Add _dl_find_object function 2021-12-28 22:52:56 +01:00
wordsize-32 Disable symbol hack in libc_nonshared.a 2021-09-27 07:46:25 -07:00
wordsize-64 Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
x86 elf: Add _dl_find_object function 2021-12-28 22:52:56 +01:00
x86_64 malloc: Remove memusage.h 2021-12-28 14:57:57 -03:00