1

What I got going on in the project is a Cordova project that uses gradle to build. I created an android plugin that calls the Go script in the form of an .aar. All works with the simple hello world.go .aar. So I know that everything works. But adding in the selphyprint.aar it crashes with "Unsupported flags DT_FLAGS_1=0x9" error in adb logcat.

It's up at https://github.com/pbdesign/selphy. The full project is at https://github.com/pbdesign/printproject with an installable apk in the android folder of the com.photobooth project directory.

If you have any ideas, I found some similar error messages that are connected to android linker but don't know if they are related. Also any ideas on how to debug such an error would be appreciated.

icza
  • 389,944
  • 63
  • 907
  • 827
Roger Large
  • 105
  • 12

1 Answers1

0

This is not an actual full answer, but as a hint, DT_FLAGS_1 is a Binutils custom dynamic section entry (see the ELF standard).

These are produce by Binutils ld during link.

The 0x8 bit in particular is defined as:

#define DF_1_NODELETE 0x00000008

inside include/elf/common.h in Binutils 2.29.1.

I would then try to determine from Binutils source / docs what DF_1_NODELETE does to understand what is happening.

That flag is also mentioned at: glibc : Test if lib as DF_1_NODELETE flag or if lib has unique symbol

Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985