glibc/sysdeps/aarch64
Joseph Myers ffec7b2740 Use x86_64 backtrace as generic version.
No glibc configuration uses the present debug/backtrace.c, whereas
several #include the x86_64 version.  The x86_64 version is
effectively a generic one (using _Unwind_Backtrace from libgcc, which
works much more reliably than the built-in functions used by
debug/backtrace.c).  This patch moves it to debug/backtrace.c and
removes all the #includes of the x86_64 version from other
architectures which are no longer required.

I do not know whether all the other architecture-specific backtrace
implementations that are based on _Unwind_Backtrace are required, or
whether, where their differences from the generic version do something
useful, suitable hooks could be added to the generic version to reduce
the duplication involved.

Tested with build-many-glibcs.py that installed stripped shared
libraries are unchanged by this patch.

	* sysdeps/x86_64/backtrace.c: Move to ....
	* debug/backtrace.c: ... here.
	* sysdeps/aarch64/backtrace.c: Remove file.
	* sysdeps/alpha/backtrace.c: Likewise.
	* sysdeps/hppa/backtrace.c: Likewise.
	* sysdeps/ia64/backtrace.c: Likewise.
	* sysdeps/mips/backtrace.c: Likewise.
	* sysdeps/nios2/backtrace.c: Likewise.
	* sysdeps/riscv/backtrace.c: Likewise.
	* sysdeps/sh/backtrace.c: Likewise.
	* sysdeps/tile/backtrace.c: Likewise.
2018-03-21 17:25:30 +00:00
..
bits
fpu Remove all target specific __ieee754_sqrt(f/l) inlines 2018-03-15 19:21:36 +00:00
multiarch IFUNC for Cavium ThunderX2 2018-02-22 08:38:47 -08:00
nptl hurd: add gscope support 2018-03-11 13:06:33 +01:00
soft-fp
__longjmp.S
abort-instr.h
atomic-machine.h
bsd-_setjmp.S
bsd-setjmp.S
configure
configure.ac
crti.S
crtn.S
dl-irel.h
dl-link.sym
dl-machine.h
dl-sysdep.h
dl-tls.h
dl-tlsdesc.h
dl-tlsdesc.S
dl-trampoline.S
dl-tunables.list
Implies
jmpbuf-offsets.h
jmpbuf-unwind.h
ldsodefs.h
libc-tls.c
libm-test-ulps Remove slow paths from pow 2018-02-12 10:47:09 +00:00
libm-test-ulps-name
linkmap.h
machine-gmon.h
Makefile
math-tests.h
mcount.c
memchr.S
memcmp.S aarch64: Fix branch target to loop16 2018-03-06 23:01:02 +05:30
memcpy.S
memmove.S
memset-reg.h
memset.S
memusage.h
preconfigure
rawmemchr.S
setjmp.S
sotruss-lib.c
stackinfo.h
start.S
stpcpy.S
strchr.S
strchrnul.S
strcmp.S aarch64/strcmp: fix misaligned loop jump target 2018-02-22 23:48:14 +05:30
strcpy.S
string_private.h
strlen.S
strncmp.S aarch64/strncmp: Use lsr instead of mov+lsr 2018-03-15 08:06:21 +05:30
strnlen.S
strrchr.S
sysdep.h
tls-macros.h
tlsdesc.c
tlsdesc.sym
tst-audit.h
Versions