瀏覽代碼

Add _IO_stdin_used global

(cherry picked from commit ae3c0a215112c301bf8250070aaefae86f7b6513)
Pierre Muller 3 年之前
父節點
當前提交
52bda8fa7c
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      rtl/linux/mips/cprt0.as

+ 6 - 1
rtl/linux/mips/cprt0.as

@@ -156,7 +156,6 @@ hlt:
         b hlt
         .end _haltproc
         .size _haltproc,.-_haltproc
-
 /* Define a symbol for the first piece of initialized data.  */
  .data
  .globl __data_start
@@ -174,3 +173,9 @@ __data_start:
         .comm operatingsystem_parameter_argc,4
         .comm operatingsystem_parameter_argv,4
 
+/* Also define _IO_stdin_used as it is used to */
+/*   distinguish different libc version */
+ .section .rodata
+ .globl _IO_stdin_used
+_IO_stdin_used:
+ .long 0x20001