Jari Vetoniemi

Results 300 comments of Jari Vetoniemi

gdb should work normally, but most bionic libraries shipped with the apks/ndk don't have debug symbols. Compile with `-DVERBOSE_FUNCTIONS` to get "ltrace" kind of functionality. Note that this will slow...

Hmm, `-DVERBOSE_FUNCTIONS` should work. (commented out here: https://github.com/Cloudef/android2gnulinux/blob/master/GNUmakefile#L12) Make sure you clean and compile if you uncomment that. >looks like any random crashing is strictly intermittent probably pthread / locking...

Great. I'm currently very busy with work, so I wasn't able to take a look at all sorry.

You would have to do quite a lot of work I think to get this to work with musl. The stdio bridge for example depends lots on glibc's internals.

The problem is that android doesn't use ld-linux, but their own loader/linker, so there are some differences. I probably exaggerated the amount of work needed for musl, but basically there...

LD_LIBRARY_PATH or compile with -rpath instead of LD_PRELOAD is probably better I provide some other runtime libs as well: https://github.com/Cloudef/android2gnulinux/blob/master/GNUmakefile#L59-L79

True LD_LIBRARY_PATH could mess things up there. I guess -rpath would work as it only affects the loader binary. But I'm not sure how you mix these all together, so...

> well... if I decide that I want to do that, then it would still be cleaner to just do `-lpthread_wrapper`... or even dlopen I guess that would work only...