[U-Boot] Fwd: Link stage error of porting uboot2011-06

Hello everyone: I am porting uboot-2011.06 to s3c44b0 board.My hardware configuration was :
CPU:s3c44b0 (64Mhz) Nor:sst39vf1601 (1M * 16bit) Nand:K9F2808U0C(32M * 8bit) SDRAM: HY57V641620HG(4Bank * 1M * 16bit) Net:RTL8019AS
Cross-compiler:eldk 4.2 arm-linux-xxx
After compiling success,i check the file of "u-boot" with arm-linux-readelf.It warns me : Segmentation fault This is the result of readelf. //=================================================== ELF Header: Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 Class: ELF32 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - System V ABI Version: 0 Type: DYN (Shared object file) Machine: ARM Version: 0x1 Entry point address: 0xc500000 Start of program headers: 52 (bytes into file) Start of section headers: 442572 (bytes into file) Flags: 0x4000002, has entry point, <unrecognized EABI> Size of this header: 52 (bytes) Size of program headers: 32 (bytes) Number of program headers: 1 Size of section headers: 40 (bytes) Number of section headers: 24 Section header string table index: 21
Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL 00000000 000000 000000 00
0 0 0 [ 1] .text PROGBITS 0c500000 008000 015a58 00 AX
0 0 16 [ 2] .rodata PROGBITS 0c515a58 01da58 006c04 00 A
0 0 4 [ 3] .hash HASH 0c51c65c 02465c 00003c 04 A
8 0 4 [ 4] .data PROGBITS 0c51c698 024698 0006dc 00 WA
0 0 4 [ 5] .got.plt PROGBITS 0c51cd74 024d74 00000c 04 WA
0 0 4 [ 6] .u_boot_cmd PROGBITS 0c51cd80 024d80 000498 00 WA
0 0 4 [ 7] .rel.dyn REL 0c51d218 025218 003e28 08 A
8 0 4 [ 8] .dynsym DYNSYM 0c521040 029040 0000a0 10 A
0 2 4 [ 9] .bss NOBITS 0c51d218 000000 0047e0 00 WA
0 0 4 [10] .ARM.attributes LOPROC+3 00000000 0290e0 00001a 00
0 0 1 [11] .debug_line PROGBITS 00000000 0290fa 007568 00
0 0 1 [12] .debug_info PROGBITS 00000000 030662 01871f 00
0 0 1 [13] .debug_abbrev PROGBITS 00000000 048d81 0072c7 00
0 0 1 [14] .debug_aranges PROGBITS 00000000 050048 0008e0 00
0 0 8 [15] .comment PROGBITS 00000000 050928 0004ec 00
0 0 1 [16] .debug_pubnames PROGBITS 00000000 050e14 002437 00
0 0 1 [17] .debug_frame PROGBITS 00000000 05324c 003094 00
0 0 4 [18] .debug_str PROGBITS 00000000 0562e0 0043d1 01 MS
0 0 1 [19] .debug_loc PROGBITS 00000000 05a6b1 0104a4 00
0 0 1 [20] .debug_ranges PROGBITS 00000000 06ab55 001488 00
0 0 1 [21] .shstrtab STRTAB 00000000 06bfdd 0000ef 00
0 0 1 [22] .symtab SYMTAB 00000000 06c48c 006260 10 23 435 4 [23] .strtab STRTAB 00000000 0726ec 002989 00
0 0 1 Key to Flags: W (write), A (alloc), X (execute), M (merge), S (strings) I (info), L (link order), G (group), x (unknown) O (extra OS processing required) o (OS specific), p (processor specific)
Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x008000 0x0c500000 0x0c500000 0x210e0 0x210e0 RWE 0x8000
Section to Segment mapping: Segment Sections... 00 .text .rodata .hash .data .got.plt .u_boot_cmd .rel.dyn .dynsym
There is no dynamic segment in this file.
Relocation section '.rel.dyn' at offset 0x25218 contains 1989 entries: Offset Info Type Sym.Value Sym. Name 0c5003a4 00000017 R_ARM_RELATIVE 0c5003ac 00000017 R_ARM_RELATIVE 0c5003bc 00000017 R_ARM_RELATIVE 0c5003ec 00000017 R_ARM_RELATIVE 0c5003f0 00000017 R_ARM_RELATIVE 0c50044c 00000017 R_ARM_RELATIVE /* The text here are omitted ,same format as below. */ 0c51d1d0 00000017 R_ARM_RELATIVE 0c51d1d4 00000017 R_ARM_RELATIVE 0c51d1d8 00000017 R_ARM_RELATIVE 0c51d1e0 00000017 R_ARM_RELATIVE 0c51d1ec 00000017 R_ARM_RELATIVE 0c51d1f0 00000017 R_ARM_RELATIVE 0c51d1f4 00000017 R_ARM_RELATIVE 0c51d1fc 00000017 R_ARM_RELATIVE 0c51d208 00000017 R_ARM_RELATIVE 0c51d20c 00000017 R_ARM_RELATIVE 0c51d210 00000017 R_ARM_RELATIVE 0c502da0 00000502 R_ARM_ABS32 0c51d218 <string table index 20> 0c50614c 00000502 R_ARM_ABS32 0c51d218 <string table index 20> 0c5065d0 00000502 R_ARM_ABS32 0c51d218 <string table index 20> 0c502da4 00000302 R_ARM_ABS32 0c51cd80 <string table index 1> 0c506148 00000302 R_ARM_ABS32 0c51cd80 <string table index 1> 0c5065cc 00000302 R_ARM_ABS32 0c51cd80 <string table index 1>
There are no unwind sections in this file.
Symbol table '.dynsym' contains 10 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND (null) 1: 0c500000 0 SECTION LOCAL DEFAULT 1 (null) Segmentation fault //========================================================= The result may be hard for reading,so i give you the file: readelf.result I have no idea what was wrong with my uboot.I suppose something wrong with the link stage of compiling uboot.Any suggestion is really appereciated !
Best regards Larry
participants (1)
-
larrybizz@aol.com