How to solve issue the linker did not create the section as expected

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

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, Shawn

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.