Hi Champs,
I have following questions for relocatable objects. CGT is C6000 7.2.3
Note that partial linking without “-ar” is used and that the abi is set to ELF format.
1) –priority flag & relocatable object :
What is the expected linker behaviour when the --priority flag is used together with one relocatable object and several libs in order to create a (static) executable object.
The observation is that for symbol resolution the relocatable object symbols always gets priority over the lib symbols independent on his placement on the command line (before / after lib flags).
2) relocatable object && conditional linking:
Contrary to the statements from (http://processors.wiki.ti.com/index.php/DSP/BIOS_on_Multi-Core_sharedimage), that states that conditional linking is disabled for relocatable objects we have observed that the final executable is only containing symbols from the relocatable object that correspond to unresolved symbols of application object files. It is to be mentioned that these symbols were originally part of a library.
Kind regards,
one and zero