Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RISC-V objcopy + variable fixes + ARM32 split header #106

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Commits on Sep 26, 2024

  1. ARM32 crt0: Split headers and code

    I finally figured out how to best achieve this without breaking GNU ld
    
    * Force code to be at known dest of 4096
    * Move _start into .text
    * Load the _start symbol address and then minus 4096 to get the load address
    
    This should make the binary more PE32 compatible
    
    Change in ncroxon/gnu-efi#45
    
    Signed-off-by: Callum Farmer <[email protected]>
    gmbr3 committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    db8677f View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2024

  1. Support using objcopy with RISC-V

    * Add system lds file so we can add the SBAT and SBOM sections
    * RISC-V requires objcopy 2.42
    
    Change made in ncroxon/gnu-efi@353984b
    
    Signed-off-by: Callum Farmer <[email protected]>
    gmbr3 committed Nov 23, 2024
    Configuration menu
    Copy the full SHA
    7645a77 View commit details
    Browse the repository at this point in the history
  2. CI: Set meson directory variables

    Meson defaults to /usr/local
    Set prefix to /usr
    Set efi-libdir to /usr/lib on Fedora (until GNU-EFI 4.0 hits)
    
    Signed-off-by: Callum Farmer <[email protected]>
    gmbr3 committed Nov 23, 2024
    Configuration menu
    Copy the full SHA
    d379988 View commit details
    Browse the repository at this point in the history
  3. Fedora spec: Set efi-libdir and efi-incdir

    Temporary fix until GNU-EFI 4.0 fixes variable setting
    
    Signed-off-by: Callum Farmer <[email protected]>
    gmbr3 committed Nov 23, 2024
    Configuration menu
    Copy the full SHA
    43320ad View commit details
    Browse the repository at this point in the history
  4. Update crt0/lds from GNU-EFI 4.0

    * Align CRT0 exit function naming
    * Push .reloc after .data
    * Make our dummy .reloc sections not depend on section order.
    
    Signed-off-by: Callum Farmer <[email protected]>
    gmbr3 committed Nov 23, 2024
    Configuration menu
    Copy the full SHA
    f2513c7 View commit details
    Browse the repository at this point in the history
  5. Use pkgconfig for gnu-efi paths

    * In use since 3.0.18 fixes bad detection on RISC-V
    
    Signed-off-by: Callum Farmer <[email protected]>
    gmbr3 committed Nov 23, 2024
    Configuration menu
    Copy the full SHA
    0235e5d View commit details
    Browse the repository at this point in the history