Browse Source

* call external routines via their TOC entry instead of directly
(mantis #29004)

git-svn-id: trunk@32527 -

Jonas Maebe 9 years ago
parent
commit
2249d95ddb
2 changed files with 6 additions and 6 deletions
  1. 1 1
      rtl/linux/powerpc64/cprt0.as
  2. 5 5
      rtl/linux/powerpc64/gprt0.as

+ 1 - 1
rtl/linux/powerpc64/cprt0.as

@@ -373,7 +373,7 @@ FUNCTION_PROLOG _start
     /* PPC64 ABI uses R13 for thread local, so we leave it alone */
     /* PPC64 ABI uses R13 for thread local, so we leave it alone */
     LOAD_64BIT_VAL 8, start_addresses
     LOAD_64BIT_VAL 8, start_addresses
 
 
-    b   .__libc_start_main
+    bl      __libc_start_main
     nop                      /* a NOP for the linker */
     nop                      /* a NOP for the linker */
 
 
 /*
 /*

+ 5 - 5
rtl/linux/powerpc64/gprt0.as

@@ -373,7 +373,7 @@ FUNCTION_PROLOG _start
     /* PPC64 ABI uses R13 for thread local, so we leave it alone */
     /* PPC64 ABI uses R13 for thread local, so we leave it alone */
     LOAD_64BIT_VAL 8, start_addresses
     LOAD_64BIT_VAL 8, start_addresses
 
 
-    b   .__libc_start_main
+    b       __libc_start_main
     nop                      /* a NOP for the linker */
     nop                      /* a NOP for the linker */
 
 
 /*
 /*
@@ -404,17 +404,17 @@ FUNCTION_PROLOG main_stub
     LOAD_64BIT_VAL 3, _start
     LOAD_64BIT_VAL 3, _start
     ld      3, 0(3)
     ld      3, 0(3)
     LOAD_64BIT_VAL 4, etext
     LOAD_64BIT_VAL 4, etext
-    bl  .__monstartup
+    bl      __monstartup
     nop
     nop
 
 
     LOAD_64BIT_VAL 3, _mcleanup
     LOAD_64BIT_VAL 3, _mcleanup
-    bl .atexit
+    bl      atexit
     nop
     nop
 
 
-    bl  .PASCALMAIN
+    bl      PASCALMAIN
     nop
     nop
 
 
-    b   ._haltproc
+    b       ._haltproc
 
 
 FUNCTION_PROLOG _haltproc
 FUNCTION_PROLOG _haltproc
     LOAD_64BIT_VAL 8, ___fpc_ret
     LOAD_64BIT_VAL 8, ___fpc_ret