Currently elftoolchain fails to build on Android, which is Linux but uses its own libc (Bionic) instead of glibc. The attached patch adds Bionic support to common/_elftc.h.
Thank you for sending in a patch.
Were you able to build and run the Elftoolchain test suite too, on Android?
I haven't tried that - I guess it would require a significant amount of effort to set up cross-compilation and to make TET run the test executables on the Android device, so I've not looked into it any further.
For my current needs, I'm basically only using the frame-unwinding parts of libelf+libdwarf (no tools or tests or docs), and I'm not using elftoolchain's build system (I'm just adding the list of .c files to an existing Android build system). So I'm not personally interested in 'proper' Android support - just enough to get that small subset working.
Log in to post a comment.