소스 검색

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"