Browse Source

* made it working

git-svn-id: trunk@5826 -
florian 18 years ago
parent
commit
7cc3d3d532
1 changed files with 4 additions and 3 deletions
  1. 4 3
      rtl/linux/x86_64/dllprt0.as

+ 4 - 3
rtl/linux/x86_64/dllprt0.as

@@ -70,7 +70,7 @@ _haltproc:
         movq    operatingsystem_result@GOTPCREL(%rip),%rbx
         movq    operatingsystem_result@GOTPCREL(%rip),%rbx
         movzwl  (%rbx),%edi
         movzwl  (%rbx),%edi
         syscall
         syscall
-        jmp     _haltproc
+        jmp     _haltproc@PLT
 
 
 /* Define a symbol for the first piece of initialized data.  */
 /* Define a symbol for the first piece of initialized data.  */
 	.data
 	.data
@@ -90,7 +90,8 @@ __data_start:
 
 
 /* We need this stuff to make gdb behave itself, otherwise
 /* We need this stuff to make gdb behave itself, otherwise
    gdb will chokes with SIGILL when trying to debug apps.
    gdb will chokes with SIGILL when trying to debug apps.
-*/
+
+Makes ld choke:
         .section ".note.ABI-tag", "a"
         .section ".note.ABI-tag", "a"
         .align 4
         .align 4
         .long 1f - 0f
         .long 1f - 0f
@@ -101,5 +102,5 @@ __data_start:
 2:      .long 0
 2:      .long 0
         .long 2,4,0
         .long 2,4,0
 3:      .align 4
 3:      .align 4
-
+*/
 	.section	.note.GNU-stack,"",@progbits
 	.section	.note.GNU-stack,"",@progbits