summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/arm/crt0.S
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-02-08 10:12:24 +0000
committerEric Andersen <andersen@codepoet.org>2003-02-08 10:12:24 +0000
commit54ebe998d5ebf7ac1337a2bfdf804c9fd060e48e (patch)
tree500886d301018aa745fc841c9da908bdae2dcc1e /libc/sysdeps/linux/arm/crt0.S
parent331427d6db02704f85cb90335ceaf64f1ed67e5e (diff)
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
Diffstat (limited to 'libc/sysdeps/linux/arm/crt0.S')
-rw-r--r--libc/sysdeps/linux/arm/crt0.S14
1 files changed, 14 insertions, 0 deletions
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
+