Browse Source

Carmelo Amoroso writes:
I experiencied some problems while trying to debug the ld.so (sh4)
in debug mode. I found that the _start code was not placed into any
PT_LOAD segment causing a SIGSEV.
I solved this issue explicitely placing the _start code into
the .text section (see attached patch).

Joakim Tjernlund 17 years ago
parent
commit
11b4fd555c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      ldso/ldso/sh/dl-startup.h

+ 1 - 0
ldso/ldso/sh/dl-startup.h

@@ -3,6 +3,7 @@
  * needed for this architecture.  */
 
 asm(
+    "	.text\n"
     "	.globl	_start\n"
     "	.type	_start,@function\n"
     "_start:\n"