When doing on x86_64:
cd tests; make btest
I get a core dump:
#0 tcc_add_bcheck (s1=0x46a2a0) at x86_64-gen.c:665
#1 0x00000000004227aa in tcc_add_runtime (s1=0x46a2a0) at tccelf.c:1323
#2 0x0000000000424d6e in elf_output_file (s1=0x46a2a0,
filename=0x46b540 "a") at tccelf.c:2260
#3 0x0000000000425420 in tcc_output_file (s=0x46a2a0, filename=0x46b540
"a") at tccelf.c:2430
#4 0x0000000000403c53 in main (argc0=5, argv0=0x7fffffffd8a8) at tcc.c:358
It seems the global tcc_state is gone after the compile state.
This function needs the bounds_section and because USING_GLOBALS is set
it will fail.
Regards,
Herman
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel