[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/26206] Add pei-aarch64 support for native EFI support
From: |
tnfchris at sourceware dot org |
Subject: |
[Bug binutils/26206] Add pei-aarch64 support for native EFI support |
Date: |
Wed, 20 Oct 2021 09:22:23 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=26206
--- Comment #18 from Tamar Christina <tnfchris at sourceware dot org> ---
(In reply to Steve McIntyre from comment #17)
> (In reply to Tamar Christina from comment #16)
> qemu-system-aarch64 -m 2048 --enable-kvm -vga none -nographic -machine
> virt,gic-version=host,kernel_irqchip=on -cpu host -pflash aarch64-OVMF.fd
> -pflash aarch64-storage.fd
Found the problem, it seems I needed -cpu cortex-a57, it now drops me to the
shell.
But when I try to run my hello world I get a rather vague
Shell> fs0:hello.efi
Command Error Status: Not Found
I am 80% sure it's the linkerscript, as binutils is able to read and understand
the format as produced by clang+lld fine.
> file hello.efi
hello.efi: PE32+ executable (EFI application) (stripped to external PDB), for
MS Windows
> objdump -h hello.efi
hello.efi: file format pei-littleaarch64
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00005bb0 0000000000002000 0000000000002000 00000400 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .data 00001d80 0000000000008000 0000000000008000 00006000 2**2
CONTENTS, ALLOC, LOAD, DATA
2 .dynamic 000000f0 000000000000a000 000000000000a000 00007e00 2**2
CONTENTS, ALLOC, LOAD, DATA
3 .rela 00000e58 000000000000b000 000000000000b000 00008000 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
4 .dynsym 00000138 000000000000c000 000000000000c000 00009000 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
But afraid I don't know enough about EFI to debug the script. Is there a tool I
can use to validate the binary or figure out what that error means?
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/26206] Add pei-aarch64 support for native EFI support, rharwood at redhat dot com, 2021/10/01
- [Bug binutils/26206] Add pei-aarch64 support for native EFI support, tnfchris at sourceware dot org, 2021/10/15
- [Bug binutils/26206] Add pei-aarch64 support for native EFI support, steve-sourceware at einval dot com, 2021/10/15
- [Bug binutils/26206] Add pei-aarch64 support for native EFI support, tnfchris at sourceware dot org, 2021/10/15
- [Bug binutils/26206] Add pei-aarch64 support for native EFI support, steve-sourceware at einval dot com, 2021/10/15
- [Bug binutils/26206] Add pei-aarch64 support for native EFI support, tnfchris at sourceware dot org, 2021/10/15
- [Bug binutils/26206] Add pei-aarch64 support for native EFI support, steve-sourceware at einval dot com, 2021/10/15
- [Bug binutils/26206] Add pei-aarch64 support for native EFI support, tnfchris at sourceware dot org, 2021/10/15
- [Bug binutils/26206] Add pei-aarch64 support for native EFI support, steve-sourceware at einval dot com, 2021/10/15
- [Bug binutils/26206] Add pei-aarch64 support for native EFI support,
tnfchris at sourceware dot org <=
- [Bug binutils/26206] Add pei-aarch64 support for native EFI support, pjones at redhat dot com, 2021/10/20
- [Bug binutils/26206] Add pei-aarch64 support for native EFI support, tnfchris at sourceware dot org, 2021/10/20
- [Bug binutils/26206] Add pei-aarch64 support for native EFI support, tnfchris at sourceware dot org, 2021/10/21
- [Bug binutils/26206] Add pei-aarch64 support for native EFI support, pjones at redhat dot com, 2021/10/28
- [Bug binutils/26206] Add pei-aarch64 support for native EFI support, tnfchris at sourceware dot org, 2021/10/29
- [Bug binutils/26206] Add pei-aarch64 support for native EFI support, pjones at redhat dot com, 2021/10/29
- [Bug binutils/26206] Add pei-aarch64 support for native EFI support, tnfchris at sourceware dot org, 2021/10/29