[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-arm32/50218: ARM executables linked with native linker on cortex-a9 raises SIGILL
> Are you building from a single c source, or from libs?> My bet is the swapping happens fine for c source or "normal" objects,> but you are using some lib that has been partially stripped, which kills> the $t/$a markers. libgcc was one of those libraries (untill fixed)
I have compiled 1 file.
gcc -o api.o -DHAVE_CONFIG_H -I. -I.. -I../include -c api.c
Now I have written a simple C function which calls only one function from the objs.
gcc -o test2 -DHAVE_CONFIG_H -I. -I.. -I../include test1.c api.o
pid 447 (test2), uid 0: exited on signal 4 (core not dumped, err = 2)
 Illegal instruction ./test2
# gcc -o api.o -DHAVE_CONFIG_H -I. -I.. -I../include -c api.c
# gcc -o test2 -DHAVE_CONFIG_H -I. -I.. -I../include test1.c api.o
The content of the test1.c is always the same.
# cat test1.c
int main ()
The obj is correctly endianness swapped in the latter case. Wonder why the same function crashes in one case and not the other.
Main Index |
Thread Index |