diff options
author | Nicolas Pitre <[email protected]> | 2011-04-27 16:15:11 -0400 |
---|---|---|
committer | Nicolas Pitre <[email protected]> | 2011-05-07 00:07:53 -0400 |
commit | adcc25915b98e5752d51d66774ec4a61e50af3c5 (patch) | |
tree | 9953511f394eabaab7331e895f707fd1de1a6271 /net/unix/sysctl_net_unix.c | |
parent | 7c2527f0c4bf6bd096f58296597e1373387d69fd (diff) |
ARM: zImage: make sure not to relocate on top of the relocation code
If the zImage load address is slightly below the relocation address,
there is a risk for the copied data to overwrite the copy loop or
cache flush code that the relocation process requires. Always
bump the relocation address by the size of that code to avoid this
issue.
Noticed by Tony Lindgren <[email protected]>.
While at it, let's start the copy from the restart symbol which makes
the above code size computation possible by the assembler directly
(same sections), given that we don't need to preserve the code before
that point anyway. And therefore we don't need to carry the _start
pointer in r5 anymore.
Signed-off-by: Nicolas Pitre <[email protected]>
Tested-by: Tony Lindgren <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions