Yhya Ibrahim
Yhya Ibrahim
> Sorry if this doesn't help. I stopped already working with C, and removed arena.h from the project as I didn't need it, It would be better for someone else...
https://github.com/termux/termux-elf-cleaner is a project to fix the alignment, but I wonder if it is possible to output the right alignment for bionic libc
After cleaning the elf, then running it again: ``` ERROR: 'No method 'acquire' could be found on target', in _$main (mem_allocator.c3:86) fish: Job 1, './nur' terminated by signal SIGTRAP (Trace...
You can close this as not planned and declare Termux to be unsupported
Ah, this seems to be duplicate of #1396
> Can you show me what compiling with `-vv` added to compilation outputs? ``` $ c3c run -vv -- AST/EXPR/TYPE INFO -- * Ast size: 56 bytes * Decl size:...
> Can you check what the correct arguments are for compiling for termux with cc? ``` $ cat test.c #include int main(void) { printf("Hello, World!"); } $ cc -o test...
If I use compile-only then link it with the command that showed in `c3c run -vv`, but remove build/obj/android-aarch64/std.core.mem.allocator.o, it doesn't show the TLS segement alignment error nor the acquire...
Running gdb, it segfaults at dyn_search, no source file information provided
``` (gdb) bt 10 #0 0x00000055555895dc in dyn_search () #1 0x0000005555591900 in malloc_try () at /data/data/com.termux/files/home/.local/bin/c3/lib/std/core/mem_allocator.c3:8 #2 alloc_array_try () at /data/data/com.termux/files/home/.local/bin/c3/lib/std/core/mem_allocator.c3:304 #3 alloc_array () at /data/data/com.termux/files/home/.local/bin/c3/lib/std/core/mem_allocator.c3:287 #4 alloc_array () at...