$ arm-linux-gnueabi-readelf -S output/u-boot
There are 28 section headers, starting at offset 0x1ec6a4:
Section Headers:[Nr] Name Type Addr Off Size ES Flg Lk Inf Al
[0]NULL0000000000000000000000000[1].text PROGBITS 5fb00000 0100000006f400 AX 0032[2].text_rest PROGBITS 5fb00700 01070002928400 AX 0032[3].rodata PROGBITS 5fb29984 03998400968800 A 004[4].hash HASH 5fb3300c 04300c 00001804 A 1204[5].data PROGBITS 5fb33024 0430240025c8 00 WA 004[6].got.plt PROGBITS 5fb355ec 0455ec 00000c 04 WA 004[7].u_boot_list PROGBITS 5fb355f8 0455f8000aa0 00 WA 004[8].rel.dyn REL 5fb36098 046098006f8008 A 1204[9].bss_start PROGBITS 5fb36098 04d0d4 00000000 W 001[10].bss NOBITS 5fb36098 0000000058e800 WA 004[11].bss_end PROGBITS 5fb3b980 04d0d4 00000000 W 001[12].dynsym DYNSYM 5fb3d018 04d018 00003010 A 1334[13].dynstr STRTAB 5fb3d048 04d048 00000100 A 001[14].dynamic DYNAMIC 5fb3d04c 04d04c 00008808 WA 1304[15].ARM.attributes ARM_ATTRIBUTES 0000000004d0d4 00002600001[16].comment PROGBITS 0000000004d0fa 00007401 MS 001[17].debug_line PROGBITS 0000000004d16e 0229c0 00001[18].debug_info PROGBITS 0000000006fb2e 0bb388 00001[19].debug_abbrev PROGBITS 0000000012aeb6 01da4e 00001[20].debug_aranges PROGBITS 00000000148908003f5800008[21].debug_frame PROGBITS 0000000014c860 00b448 00004[22].debug_str PROGBITS 00000000157ca8 01222801 MS 001[23].debug_loc PROGBITS 00000000169ed0 062a0a 00001[24].debug_ranges PROGBITS 000000001cc8e0 00899000008[25].symtab SYMTAB 000000001d5270 010e90102634894[26].strtab STRTAB 000000001e610000649400001[27].shstrtab STRTAB 000000001ec594 00011000001
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
L (link order), O (extra OS processing required), G (group), T (TLS),
C (compressed), x (unknown), o (OS specific), E (exclude),
y (purecode), p (processor specific)
./tools/mkimage -A arm -T firmware -C none -O u-boot -a 0x5FB00000-e 0x5FB00000-n "U-Boot 2021.01""-15955-g9f70b17-dirty for ok6410a board"-d u-boot.bin u-boot.img
u-boot的解析$ arm-linux-gnueabi-readelf -S output/u-boot There are 28 section headers, starting at offset 0x1ec6a4:Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL .