How to solve issue the linker did not create expected


#1

Using hexdump the built image cannot find the signature “MZ” -

The image section is defined in the linker script: .text : { . = ALIGN(4); *(.text.efi.header) *(.text.start) _textstart = .; _stext = .; . . } > rom

and the image map has been specified in main.rs:

global_asm!(r#" .section “.text.efi.header” efi_head: .ascii “MZ” /* Magic MZ signature required by UEFI */ . . "#);

As I build Tock OS for TARGET=aarch64-unknown-linux-gnu, TOOLCHAIN ?= aarch64-linux-gnu

Thanks