blob: e1303973a484bf17d883f78d1d5fd3902194e1ee [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// This is linked into some minimal test phys executables that are run
// directly as QEMU kernels. It provides the section name that phys.ld
// places first, with a trivial trampoline to call _start. In real phys
// executables, this section holds either a target-specific header, or ZBI
// container and kernel item headers, pointing to the load image with
// _start as its entry point.
.section .boot.header, "ax", %progbits
#if defined(__aarch64__)
b _start
#elif defined(__x86_64__) || defined(__i386__)
jmp _start
#error "what machine??"