Files
xen/tools/firmware/hvmloader/hvmloader.lds
T
Roger Pau Monné 2646b30320 hvmloader: set entry point in linker script
Or else it defaults to using 0x100000 as the entry point, which might
or might not point to _start. This is a fix for 09b3907f93.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
2018-09-04 11:27:41 +02:00

16 lines
352 B
Plaintext

ENTRY(_start)
SECTIONS
{
. = 0x100000;
/*
* NB: there's no need to use the AT keyword in order to set the LMA, by
* default the linker will use VMA = LMA unless specified otherwise.
*/
.text : { *(.text) *(.text.*) }
.rodata : { *(.rodata) *(.rodata.*) }
.data : { *(.data) *(.data.*) }
.bss : { *(.bss) *(.bss.*) }
_end = .;
}