glibc/sysdeps/sparc/sparc32
Adhemerval Zanella d6d89608ac elf: Fix dynamic-link.h usage on rtld.c
The 4af6982e4c fix does not fully handle RTLD_BOOTSTRAP usage on
rtld.c due two issues:

  1. RTLD_BOOTSTRAP is also used on dl-machine.h on various
     architectures and it changes the semantics of various machine
     relocation functions.

  2. The elf_get_dynamic_info() change was done sideways, previously
     to 490e6c62aa get-dynamic-info.h was included by the first
     dynamic-link.h include *without* RTLD_BOOTSTRAP being defined.
     It means that the code within elf_get_dynamic_info() that uses
     RTLD_BOOTSTRAP is in fact unused.

To fix 1. this patch now includes dynamic-link.h only once with
RTLD_BOOTSTRAP defined.  The ELF_DYNAMIC_RELOCATE call will now have
the relocation fnctions with the expected semantics for the loader.

And to fix 2. part of 4af6982e4c is reverted (the check argument
elf_get_dynamic_info() is not required) and the RTLD_BOOTSTRAP
pieces are removed.

To reorganize the includes the static TLS definition is moved to
its own header to avoid a circular dependency (it is defined on
dynamic-link.h and dl-machine.h requires it at same time other
dynamic-link.h definition requires dl-machine.h defitions).

Also ELF_MACHINE_NO_REL, ELF_MACHINE_NO_RELA, and ELF_MACHINE_PLT_REL
are moved to its own header.  Only ancient ABIs need special values
(arm, i386, and mips), so a generic one is used as default.

The powerpc Elf64_FuncDesc is also moved to its own header, since
csu code required its definition (which would require either include
elf/ folder or add a full path with elf/).

Checked on x86_64, i686, aarch64, armhf, powerpc64, powerpc32,
and powerpc64le.

Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
2021-10-14 14:52:07 -03:00
..
bits Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
fpu Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
sparcv9 Add narrowing fma functions 2021-09-22 21:25:31 +00:00
__longjmp.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
add_n.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
addmul_1.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
alloca.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
backtrace.h
bsd-_setjmp.S
bsd-setjmp.S
bzero.c
configure sparc: Use atomic compiler builtins on sparc 2019-11-27 10:31:13 -03:00
configure.ac sparc: Use atomic compiler builtins on sparc 2019-11-27 10:31:13 -03:00
dl-irel.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
dl-machine.h elf: Fix dynamic-link.h usage on rtld.c 2021-10-14 14:52:07 -03:00
dl-plt.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
dl-trampoline.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
dotmul.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
ieee754.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Implies Remove sysdeps/sparc/sparc32/soft-fp directory. 2018-05-25 16:51:15 +00:00
jmpbuf-offsets.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
jmpbuf-unwind.h Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
lshift.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Makefile Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
memchr.S Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
memcpy.S Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
memset.S Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
mul_1.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pthread_spin_lock.S nptl: Move pthread_spin_lock into libc 2021-04-23 17:06:46 +02:00
pthread_spin_trylock.S nptl: Move pthread_spin_trylock into libc 2021-04-23 17:06:48 +02:00
pthreaddef.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_add.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_cmp.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_cmpe.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_div.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_dtoq.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_feq.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_fge.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_fgt.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_fle.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_flt.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_fne.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_itoq.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_lltoq.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_mul.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_neg.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_qtod.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_qtoi.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_qtoll.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_qtos.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_qtou.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_qtoull.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_sqrt.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_stoq.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_sub.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_ulltoq.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_util.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
q_utoq.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
rem.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
rshift.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sdiv.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
setjmp.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sfp-machine.h Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
stackguard-macros.h
start.S Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
stpcpy.S Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strcat.S Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strchr.S Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strcmp.S Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strcpy.S Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strlen.S Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strrchr.c
sub_n.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
submul_1.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-audit.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
udiv.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
umul.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
urem.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
Versions Remove sysdeps/sparc/sparc32/soft-fp directory. 2018-05-25 16:51:15 +00:00