From 54ebe998d5ebf7ac1337a2bfdf804c9fd060e48e Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 8 Feb 2003 10:12:24 +0000 Subject: Fixup handling of the .note.ABI-tag section so that it is ARM only, and so it actually works as intended allowing binaries on ARM to be debugged. -Erik --- libc/sysdeps/linux/arm/crt0.S | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'libc/sysdeps/linux') diff --git a/libc/sysdeps/linux/arm/crt0.S b/libc/sysdeps/linux/arm/crt0.S index cb478928e..03a80eaa1 100644 --- a/libc/sysdeps/linux/arm/crt0.S +++ b/libc/sysdeps/linux/arm/crt0.S @@ -109,3 +109,17 @@ _start: /* Crash if somehow `exit' returns anyways. */ bl abort +/* We need this stuff to make gdb behave itself, otherwise + gdb will chokes with SIGILL when trying to debug apps. +*/ + .section ".note.ABI-tag", "a" + .align 4 + .long 1f - 0f + .long 3f - 2f + .long 1 +0: .asciz "GNU" +1: .align 4 +2: .long 0 + .long 2,0,0 +3: .align 4 + -- cgit v1.2.3