|
|
|
|
|
|
| Author |
Message |
<china@foo.com> *nix forums beginner
Joined: 01 Sep 2005
Posts: 4
|
Posted: Fri Oct 14, 2005 3:36 am Post subject:
Fatal linker error building gcc-4.0.2
|
|
|
While trying to build gcc-4.0.2 with GNU as, IRIX ld, and MIPSpro
7.4.3m, I ran into an ld error:
ld32: FATAL 2 : Internal: at ../../ld/section_type.c In load_info()
unknown section type
This was while trying to create the libstdc++.so shared library. If I
dump the section headers of one of the object files in the link:
$ elfdump -h .libs/allocator-inst.o
..libs/allocator-inst.o:
**** SECTION HEADER TABLE ****
[No] Type Addr Offset Size Name
Link Info Adralgn Entsize Flags
[1] 0x11 0 0x34 0x8 .group
43 0x25 0x4 0x4 0x00000000
[2] 0x11 0 0x3c 0x8 .group
43 0x26 0x4 0x4 0x00000000
....
[13] SHT_PROGBITS 0 0xa0 0 .text
0 0 0x10 0 0x00000006 ALLOC EXECINSTR
[14] SHT_PROGBITS 0 0xa0 0 .data
0 0 0x10 0 0x00000003 WRITE ALLOC
....
Notice for some of the section headers, we get numbers for the type
(e.g. 0x11) rather than a name (SHT_PROGBITS). Is this the reason for
the ld error? I'm thinking the section types in the elfdump -h output
get converted to names for the types ld knows about and left as
numbers otherwise.
--
albert chin |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Jan 08, 2009 12:14 pm | All times are GMT
|
|
Debt Consolidation | Magazine Subscriptions | Credit Cards | Credit Cards | Loans
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|