Use _elf_start for entrypoints, and leave _start paired with _end for the
image.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
#include <xen/elfnote.h>
.code32 /* Always starts in 32bit flat mode. */
-GLOBAL(_start) /* HVM common setup. */
+GLOBAL(_elf_start) /* HVM common setup. */
#if CONFIG_PAGING_LEVELS > 0 /* Paging setup for CR3 and CR4 */
push $.Lmain_err_msg
#endif
call panic
-ENDFUNC(_start)
+ENDFUNC(_elf_start)
DECLSTR(.Lmain_err_msg, "xtf_main() returned\n")
/* All HVM XTF guests are compatible with the PVH ABI. */
ENTRY(_pvh_start)
mov %ebx, pvh_start_info
- jmp _start
+ jmp _elf_start
ENDFUNC(_pvh_start)
ELFNOTE(Xen, XEN_ELFNOTE_PHYS32_ENTRY, .long _pvh_start)
# error Bad architecture to link with
#endif
-ENTRY(_start)
+ENTRY(_elf_start)
PHDRS
{
__ASM_SEL(.code32, .code64)
/* PV entry point. */
-GLOBAL(_start)
+GLOBAL(_elf_start)
/* Stash the pv_start_info pointer from domain builder. */
mov %_ASM_SI, pv_start_info
push $.Lmain_err_msg
#endif
call panic
-ENDFUNC(_start)
+ENDFUNC(_elf_start)
DECLSTR(.Lmain_err_msg, "xtf_main() returned\n")