[U-Boot] [PATCH v2 6/7] MIPS: u-boot.lds: add relocation specific sections
Gabor Juhos
juhosg at openwrt.org
Mon Feb 11 15:56:41 CET 2013
2013.02.11. 15:32 keltezéssel, Daniel Schwierzeck írta:
> From: Gabor Juhos <juhosg at openwrt.org>
>
> This section contain the table needed for dynamic
> relocation. Also provide symbols for the relocation
> code to access the table.
>
> Discard all sections which are not needed in the final
> ELF binary and U-Boot image. Section .dynsym cannot be
> discarded or GNU ld crashes otherwise. This section
> will be stripped by GNU objcpy in a later patch.
>
> Signed-off-by: Gabor Juhos <juhosg at openwrt.org>
> Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck at gmail.com>
> ---
> Changes since v1:
> - add back the .deadcode section (see code comment for explanation)
Thanks!
-Gabor
For the record: the qemu_mips{,el,64,64el} and the qi_lb60 images (compiled from
the updated mips/reloc branch) are working under qemu:
U-Boot 2013.01-00178-gc27fe73 (Feb 11 2013 - 15:46:40)
Board: Qemu -M mips CPU: 24Kf proc_id=0x19300
DRAM: 128 MiB
## Unknown flash on Bank 1 - Size = 0x00000000 = 0 MB
Flash: 0 Bytes
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: NE2000
Hit any key to stop autoboot: 0
qemu-mips #
---
U-Boot 2013.01-00178-gc27fe73 (Feb 11 2013 - 15:47:29)
Board: Qemu -M mips CPU: 24Kf proc_id=0x19300
DRAM: 128 MiB
## Unknown flash on Bank 1 - Size = 0x00000000 = 0 MB
Flash: 0 Bytes
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: NE2000
Hit any key to stop autoboot: 0
qemu-mipsel #
---
U-Boot 2013.01-00178-gc27fe73 (Feb 11 2013 - 15:48:16)
Board: Qemu -M mips CPU: 20Kc proc_id=0x182a0
DRAM: 128 MiB
## Unknown flash on Bank 1 - Size = 0x00000000 = 0 MB
Flash: 0 Bytes
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: NE2000
Hit any key to stop autoboot: 0
qemu-mips64 #
---
U-Boot 2013.01-00178-gc27fe73 (Feb 11 2013 - 15:48:55)
Board: Qemu -M mips CPU: 20Kc proc_id=0x182a0
DRAM: 128 MiB
## Unknown flash on Bank 1 - Size = 0x00000000 = 0 MB
Flash: 0 Bytes
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: NE2000
Hit any key to stop autoboot: 0
qemu-mips64el #
---
U-Boot 2013.01-00178-gc27fe73 (Feb 11 2013 - 15:49:34)
Board: Qi LB60 (Ingenic XBurst Jz4740 SoC, Speed 336 MHz)
DRAM: 32 MiB
NAND: No NAND device found!!!
0 MiB
No Valid Environment Area found
No Valid Redundant Environment Area found
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
no devices available
Wrong Image Format for bootm command
ERROR: can't get kernel image!
NanoNote#
More information about the U-Boot
mailing list