From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gabor Juhos Date: Mon, 11 Feb 2013 15:56:41 +0100 Subject: [U-Boot] [PATCH v2 6/7] MIPS: u-boot.lds: add relocation specific sections In-Reply-To: <1360593142-1606-1-git-send-email-daniel.schwierzeck@gmail.com> References: <1360442010-7520-7-git-send-email-daniel.schwierzeck@gmail.com> <1360593142-1606-1-git-send-email-daniel.schwierzeck@gmail.com> Message-ID: <511906A9.9010103@openwrt.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 2013.02.11. 15:32 keltez?ssel, Daniel Schwierzeck ?rta: > From: Gabor Juhos > > 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 > Signed-off-by: Daniel Schwierzeck > --- > 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#