
Hi Albert,
On Tue, Feb 21, 2012 at 11:52 AM, Albert ARIBAUD albert.u.boot@aribaud.net wrote:
Hi Simon,
Le 21/02/2012 18:02, Simon Glass a écrit :
- . = ALIGN(4);
This "ALIGN(4)" is what upsets my edminiv2 build and makes it not binary-identical. It is not in the current arm926ejs liner script. I will check if adding it to the current arm926ejs script produces a working and binary-identical u-boot.
OK, but realistically we copy a word at a time (at least) and the .rel.dyn region is going to be word-aligned I think. All we are doing here is making sure that the image ends on a word boundary, which seems reasonable to me.
In other words, I would like the __image_copy_start and __image_copy_end symbols to be word-aligned.
I understand the requirement and agree to it -- only, it seems to me it is already fulfilled in the current lds files, so I still fail to see what breaks 'near binary identity'.
If we add any symbols or change the value of any of them, then the binary file may change. You can see the differences by doing something like:
armv7a-cros-linux-gnueabi-objdump -b binary -m arm -D u-boot.bin
on each file (but I guess you know that).
Amicalement,
Albert.
Regards, Simon