Commit 52da82cf authored by Sam Ravnborg's avatar Sam Ravnborg Committed by David S. Miller

sparc: fix tftpboot.img build

Kjetil Oftedal mentioned that piggyback_32 was failing
when building a sparc image.

I tracked this down to the fact that the kernel no longer
provided an absolute symbol named "end".

Commit 86ed40bd ("sparc: unify sections.h")
renamed end to _end but failed to update piggyback_32.
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Cc: Kjetil Oftedal <oftedal@gmail.com>
Cc: Robert Reif <reif@earthlink.net>
Signed-off-by: default avatarJulian Calaby <julian.calaby@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 22b096a8
...@@ -84,7 +84,7 @@ int main(int argc,char **argv) ...@@ -84,7 +84,7 @@ int main(int argc,char **argv)
while (fgets (buffer, 1024, map)) { while (fgets (buffer, 1024, map)) {
if (!strcmp (buffer + 8, " T start\n") || !strcmp (buffer + 16, " T start\n")) if (!strcmp (buffer + 8, " T start\n") || !strcmp (buffer + 16, " T start\n"))
start = strtoul (buffer, NULL, 16); start = strtoul (buffer, NULL, 16);
else if (!strcmp (buffer + 8, " A end\n") || !strcmp (buffer + 16, " A end\n")) else if (!strcmp (buffer + 8, " A _end\n") || !strcmp (buffer + 16, " A _end\n"))
end = strtoul (buffer, NULL, 16); end = strtoul (buffer, NULL, 16);
} }
fclose (map); fclose (map);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment