Hi,
I'm having problems with partial linking using cgtools 7.3.6 and the ELF EABI for a C66 target. Our product is a library that uses a number of other libraries (for example libtiff) that are partially linked to the object files that call into those libraries (i.e. we have one source file that calls into libtiff, and that file is then partially linked to libtiff). The idea is that we can distribute one library that includes all required dependencies. This approach works fine with COFF objects.
I am currently attempting to migrate our library to ELF - unfortunately, partial linking doesn't work here, as the linker leaves out some of the other libraries' functions (in the case of libtiff, it leaves out _TIFFfree, but includes everything else). I use the exact same command line switches for building COFF and EABI (except for the --abi switch, obviously) . Is there anything special to take into account when partial linking with ELF ? What am I doing wrong ?
I've attached a minimal project that can reproduce the problem on a Linux build system. Just edit the makefile to point to where the compiler is installed, and then type 'make' for building for EABI (which fails), and 'make COFF=yes' for building for COFF, which works).