瀏覽代碼

* powerpc-linux: provide also local __libc_csu_* routines

(cherry picked from commit 143c2ec232764523ba89d003169f6fede138feeb)
florian 3 年之前
父節點
當前提交
4480f65e98
共有 1 個文件被更改,包括 20 次插入0 次删除
  1. 20 0
      rtl/linux/powerpc/cprt0.as

+ 20 - 0
rtl/linux/powerpc/cprt0.as

@@ -57,6 +57,26 @@ _start:
  /* and continue in libc-start, in glibc.  */
     b      __libc_start_main
 
+	.balign 4
+.globl	__libc_csu_init
+	.type	__libc_csu_init,@function
+/* strangly enough using weak breaks things */
+/*    .weak __libc_csu_init                 */
+__libc_csu_init:
+	blr
+.Le0:
+	.size	__libc_csu_init, .Le0 - __libc_csu_init
+
+	.balign 4
+.globl	__libc_csu_fini
+	.type	__libc_csu_fini,@function
+/* strangly enough using weak breaks things */
+/*    .weak __libc_csu_fini */
+__libc_csu_fini:
+	blr
+.Le1:
+	.size	__libc_csu_fini, .Le1 - __libc_csu_fini
+
     .globl  main_stub
     .type   main_stub, @function
 main_stub: