For __USES_INITFINI__ preserve the argument vector before calling the
initialisation functions.
This commit is contained in:
parent
b8ed088fac
commit
e9853806c7
@ -1,3 +1,8 @@
|
|||||||
|
2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
|
||||||
|
|
||||||
|
* libc/sys/arm/crt0.S: For __USES_INITFINI__ preserve the argument
|
||||||
|
vector before calling the initialisation functions.
|
||||||
|
|
||||||
2001-11-29 Christopher Faylor <cgf@redhat.com>
|
2001-11-29 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* libc/include/dirent.h: Protect against multiple inclusion.
|
* libc/include/dirent.h: Protect against multiple inclusion.
|
||||||
|
@ -187,9 +187,13 @@ __change_mode:
|
|||||||
to create constructors and destructors, and for these
|
to create constructors and destructors, and for these
|
||||||
targets we need to call the _init function and arrange
|
targets we need to call the _init function and arrange
|
||||||
for _fini to be called at program exit. */
|
for _fini to be called at program exit. */
|
||||||
|
mov r4, r0
|
||||||
|
mov r5, r1
|
||||||
ldr r0, .Lfini
|
ldr r0, .Lfini
|
||||||
bl FUNCTION (atexit)
|
bl FUNCTION (atexit)
|
||||||
bl FUNCTION (_init)
|
bl FUNCTION (_init)
|
||||||
|
mov r0, r4
|
||||||
|
mov r1, r5
|
||||||
#endif
|
#endif
|
||||||
bl FUNCTION (main)
|
bl FUNCTION (main)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user