Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
7 results

cmd_elf.c

Blame
  • Forked from Reform / reform-boundary-uboot
    Source project has a limited visibility.
    • Mike Frysinger's avatar
      f44a928e
      cmd_elf: add an option for loading ELFs according to PHDRs · f44a928e
      Mike Frysinger authored
      
      The current ELF loading function does a lot of work above and beyond a
      simple "loading".  It ignores the real load addresses and loads things
      into their virtual (runtime) address.  This is undesirable when we just
      want it to load an ELF and let the ELF do the actual C runtime init.
      
      So add a command line option to let people choose to load via either the
      program or section headers.  I'd prefer to have program header loading
      be the default, but this would break historical behavior, so I'll leave
      section header loading as the norm.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      f44a928e
      History
      cmd_elf: add an option for loading ELFs according to PHDRs
      Mike Frysinger authored
      
      The current ELF loading function does a lot of work above and beyond a
      simple "loading".  It ignores the real load addresses and loads things
      into their virtual (runtime) address.  This is undesirable when we just
      want it to load an ELF and let the ELF do the actual C runtime init.
      
      So add a command line option to let people choose to load via either the
      program or section headers.  I'd prefer to have program header loading
      be the default, but this would break historical behavior, so I'll leave
      section header loading as the norm.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>