This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

undefined symbol __c6xabi_gtd,when compiling the ridl 2.1 for c6000 dynamic linking



 Hi all

I am using the reference implementation of ELF Dynamic Loader. 

There is an error:

undefined    first referenced
  symbol          in file
 ---------    ----------------
 __c6xabi_gtd

error: unresolved symbols remain
error: errors encountered during linking; "dlti.gen" not built

the compiler version was 7.4.1

  •  __c6xabi_gtd is the helper function for double-precision floating-point "greater than."  I'm surprised you have a call to it with compiler version 7.4.1.

    You will need to export this symbol in the base image with --export=__c6xabi_gtd 

    You should find a linker command file with a bunch of --export options in it, add this option to that file.

  • thank you for your reply.

    There seems no call to it. the "c60_export.cmd" file had already exported the symbol, part of the file listed below:

    --export=__cxa_atexit
    --export=__cxa_finalize
    --export=__c6xabi_cmpd
    --export=__c6xabi_gtd
    --export=__c6xabi_cvtfd
    --export=__c6xabi_divi
    --export=__c6xabi_divu
    --export=__c6xabi_llshru
    --export=__c6xabi_remu
    --export=__c6xabi_subd
    --export=__c6xabi_subf
    --export=__c6xabi_remi

    non of the src file contain the symbol "c6xabi_gtd",so I deleted the line"--export=__c6xabi_gtd" in the cmd file.


    Then the "gmake TARGET_CC=C60" successfully completed.