Maciej W. Rozycki 27c524d174
MIPS: Use the entry point from the ELF file header
In order to fetch the correct entry point with the ISA bit included, for
use by non-ELF boot loaders, parse the output of `objdump -f' for the
start address recorded in the kernel executable itself, rather than
using `nm' to get the value of the `kernel_entry' symbol.

Sign-extend the address retrieved if 32-bit, so that execution is
correctly started on 64-bit processors as well.  The tool always prints
the entry point using either 8 or 16 hexadecimal digits, matching the
address width (aka class) of the ELF file, even in the presence of
leading zeros.

Signed-off-by: Maciej W. Rozycki <macro@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/18912/
Signed-off-by: James Hogan <jhogan@kernel.org>
2018-03-22 22:30:58 +00:00
..
2018-02-19 10:55:35 +00:00
2018-02-19 10:55:36 +00:00
2016-08-03 08:16:30 +02:00
2017-01-25 02:51:11 +01:00
2017-11-15 11:36:08 -08:00
2018-02-07 11:22:44 -08:00
2018-02-19 10:55:35 +00:00
2017-11-03 09:02:30 -07:00
2018-02-19 10:55:36 +00:00
2017-04-10 11:56:07 +02:00