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> |
||
|---|---|---|
| .. | ||
| aarch64 | ||
| arc | ||
| arm | ||
| bfin | ||
| config | ||
| cr16 | ||
| cris | ||
| crx | ||
| csky | ||
| d30v | ||
| doc | ||
| epiphany | ||
| fr30 | ||
| frv | ||
| ft32 | ||
| hp74x | ||
| i386 | ||
| i960 | ||
| iq2000 | ||
| libnosys | ||
| lm32 | ||
| m32c | ||
| m32r | ||
| m68hc11 | ||
| m68k | ||
| mcore | ||
| mep | ||
| microblaze | ||
| mips | ||
| mn10200 | ||
| mn10300 | ||
| moxie | ||
| msp430 | ||
| mt | ||
| nds32 | ||
| nios2 | ||
| or1k | ||
| pa | ||
| pru | ||
| riscv | ||
| rl78 | ||
| rs6000 | ||
| rx | ||
| sh | ||
| sparc | ||
| sparc_leon | ||
| spu | ||
| testsuite | ||
| tic6x | ||
| v850 | ||
| visium | ||
| wince | ||
| xc16x | ||
| xstormy16 | ||
| ChangeLog | ||
| ChangeLog-2015 | ||
| Makefile.am | ||
| Makefile.in | ||
| README | ||
| aclocal.m4 | ||
| close.c | ||
| config.h.in | ||
| configure | ||
| configure.ac | ||
| debug.c | ||
| debug.h | ||
| fstat.c | ||
| getpid.c | ||
| glue.h | ||
| isatty.c | ||
| kill.c | ||
| lseek.c | ||
| multi-build.in | ||
| open.c | ||
| print.c | ||
| putnum.c | ||
| read.c | ||
| sbrk.c | ||
| stat.c | ||
| syscall.h | ||
| unlink.c | ||
| write.c | ||
README
Libgloss is a library for all the details that usually get glossed over. This library refers to things like startup code, and usually I/O support for GCC and the C library. For more details, see the manual under doc/.