Problem about ld on IA64 linux

sogood@163.com (Xing Xu)
22 Jun 2003 23:17:48 -0400

          From comp.compilers

Related articles
Problem about ld on IA64 linux sogood@163.com (2003-06-22)
| List of all articles for this month |
From: sogood@163.com (Xing Xu)
Newsgroups: comp.compilers
Date: 22 Jun 2003 23:17:48 -0400
Organization: http://groups.google.com/
Keywords: linker, question
Posted-Date: 22 Jun 2003 23:17:48 EDT

Hi Guiders,


below process can be work under IA32 linux7.2 ,but porting to IA64
I have meet so diffcult a problem ,about dwarf error .


at first :
/usr/bin/ld -r -o IA.64/libtest.o IA.64/test.o -L../../../lib/IA.64
--whole-archive -lA --no-whole-archive -lB


and then :
ar -q ../../../lib/IA.64/libtest.a IA.64/libtest.o IA.64/stubs.o


at last :
I write a main.c ,in which file I call function in libtest.a


/usr/bin/ld -o test_main IA.64/main.o -L. -L../../../lib/IA.64 -ltest
-lnsl -lm -ldl


but I get below message :
/usr/bin/ld: Dwarf Error: Could not find abbrev number 53.
/usr/bin/ld: Dwarf Error: Could not find abbrev number 104.
/usr/bin/ld: Dwarf Error: Could not find abbrev number 192.
/usr/bin/ld: Dwarf Error: Could not find abbrev number 192.
/usr/bin/ld: Dwarf Error: Could not find abbrev number 192.
/usr/bin/ld: Dwarf Error: Could not find abbrev number 44.
.......


in my working envirment
/usr/bin/ld -V
GNU ld version 2.11.90.0.8 (with BFD 2.11.90.0.8)
    Supported emulations:
      elf64_ia64


/usr/bin/gcc -v
Reading specs from /usr/lib/gcc-lib/ia64-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-112.7.2)


/etc/redhat-release
Red Hat Linux Advanced Workstation release 2.1AW (Derry)


Could anybody know what meaning dwarf errors in the gnu linker 'ld'
are ? or how I can know the meaning of above errors ?


maybe I need to use newer ld version on IA.64 ?


Thanks Very Much!
[Looks like the assembler and linker disagree about debugging symbol
formats. -John]



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.