21f0edbf9f
The _open() C function is declared as having variable arguments in newlib, so second and third arguments are passed on stack. Add code to move them into registers, since that's where the PRU simulator expects them. Issue was exposed by the GCC test gcc.c-torture/execute/fprintf-2.c, which relies on tmpnam implementation to pass correct flags to _open. Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu> |
||
---|---|---|
.. | ||
device-specs | ||
Makefile.in | ||
crt0.S | ||
do_global_dtors.c | ||
gettimeofday.c | ||
inbyte.c | ||
isatty.c | ||
outbyte.c | ||
print.c | ||
putnum.c | ||
raise.c | ||
sbrk.c | ||
stat.c | ||
syscalls.S |