瀏覽代碼

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 年之前
父節點
當前提交
11b4fd555c
共有 1 個文件被更改,包括 1 次插入0 次删除
  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"