Re: [PATCH v3] MIPS: Use the entry point from the ELF file header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 22, 2018 at 04:30:41PM +0000, Maciej W. Rozycki wrote:
> 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@xxxxxxxx>
> ---
> Changes in v3:
> 
> - renamed from "MIPS: Set ISA bit in entry-y for microMIPS kernels", to 
>   avoid confusion with commit 5fc9484f5e41,
> 
> - fixed the `sed' program to correctly pass through 64-bit values.

Thanks, applied for 4.17.

Cheers
James

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux