On Sat, Oct 20, 2001 at 06:00:54PM +0200, Eric BENARD / FREE wrote:
> I have exactly the same problem when trying to compile redboot (latest
> cvs) with two different toolchains :

I don't think objcopy is at fault.  Why?

> # hexdump /tmp/redboot4/install/bin/redboot.bin
> 0000000 0000 0000 0000 0000 0000 0000 7962 5001
> 0000010 7a62 5001 0000 0000 0000 0000 0000 0000
> 0000020 0000 0000 0000 0000 0000 0000 0000 0000

You have data at address 12, and:

> *
> 50000000 f018 e59f f018 e59f f018 e59f f018 e59f
> 50000010 f018 e59f 0000 0000 f018 e59f f018 e59f
> 50000020 0060 0000 0358 5000 03dc 5000 0414 5000

further on.  When you convert this from ELF (which has sections) to a pure
flat binary image, and it contains data at 0x0000000c and 0x50000000, it
can't decide for itself to throw away the data at 0x0000000c.

I'd guess if you used arm-linux-nm on the elf file, you'd find some symbols
at address 0 or so.  This might point you at the reason you've got data
down there, and the reason why would need to be investigated.

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to