• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révision0b1cf973586e4680eee0cb8ddba51d57c7ba96b4 (tree)
l'heure2022-11-30 13:03:06
AuteurYoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Message de Log

argv fix

Change Summary

Modification

--- a/libc/sysdeps/linux/rx/crt1.S
+++ b/libc/sysdeps/linux/rx/crt1.S
@@ -24,6 +24,9 @@
2424 .global atexit
2525 .global main
2626
27+ .weak _init
28+ .weak _fini
29+
2730 .text
2831
2932 /*
@@ -33,12 +36,15 @@ void __uClibc_main(int (*main)(int, char **, char **), int argc,
3336 void (*rtld_fini)(void), void *stack_end attribute_unused)
3437 */
3538 _start:
39+ mov.l [r0],r2
40+ add #4,r0,r3
3641 mov.l r0,[-r0]
3742 mov.l #0,r1
3843 mov.l r1,[-r0]
44+ mov.l #_fini,r1
3945 mov.l r1,[-r0]
4046 mov.l #main, r1
41- mov.l #0,r4
47+ mov.l #_init,r4
4248 bsr __uClibc_main
4349
4450 /* If that didn't kill us, ... */