openbios/libgcc
Glenn Washburn 0fbb6f73c1 ppc: Do not generate .stabs ELF sections to prevent GDB from choking on them
Recent versions of GDB (and probably older ones too, but not checked) crash
with and abort when loading the non-stripped 32-bit PPC QEMU build[1]. This
is due to a bug in GDB on reading stab symbols. The only place in OpenBIOS
where stab symbols are generated is in libgcc/crtsavres.S, which was copied
from the linux kernel[2].

Symbols that were defined in the stabs section are still able to be seen in
GDB after stabs removal. There does not appear to be a loss in debugging
functionality.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=28900
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/powerpc/include/asm/ppc_asm.h?h=v5.17-rc4#n211

Signed-off-by: Glenn Washburn <development@efficientek.com>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
2022-02-23 21:41:37 +00:00
..
__divdi3.c Add a common header file for libgcc functions 2008-07-07 18:38:30 +00:00
__divti3.c Add a common header file for libgcc functions 2008-07-07 18:38:30 +00:00
__lshrdi3.c Update FSF addresses 2009-01-05 18:50:53 +00:00
__negti2.c Some gcc versions need __negti2 2009-08-20 19:10:04 +00:00
__udivdi3.c Add a common header file for libgcc functions 2008-07-07 18:38:30 +00:00
__udivmoddi4.c Add a common header file for libgcc functions 2008-07-07 18:38:30 +00:00
__udivmodti4.c Remove unnecessary trailing newlines 2008-12-13 09:26:41 +00:00
__udivti3.c Add a common header file for libgcc functions 2008-07-07 18:38:30 +00:00
__umoddi3.c Add a common header file for libgcc functions 2008-07-07 18:38:30 +00:00
__umodti3.c Add a common header file for libgcc functions 2008-07-07 18:38:30 +00:00
ashldi3.c Update FSF addresses 2009-01-05 18:50:53 +00:00
ashrdi3.c Update FSF addresses 2009-01-05 18:50:53 +00:00
build.xml ppc: fix build with newer GCCs 2010-10-03 19:18:28 +00:00
crtsavres.S ppc: Do not generate .stabs ELF sections to prevent GDB from choking on them 2022-02-23 21:41:37 +00:00
libgcc.h Some gcc versions need __negti2 2009-08-20 19:10:04 +00:00
multi3.c Update FSF addresses 2009-01-05 18:50:53 +00:00