coreboot-kgpe-d16/src
Gabe Black 978c215127 ARM: Define custom ELF headers for ARM.
At least when building with the gnu toolchain, the headers the linker
automatically generate save space for the actual ELF headers in one of the
loadable segments. This creates two problems. First, the data you intended to
be at the start of the image doesn't actually show up there, it's actually the
ELF headers. Second, the ELF headers are essentially useless for firmware
since there's currently nothing to tell you where they are, and even if there
was, there isn't much of a reason to look at them. They're useful in userspace
for, for instance, the dynamic linker, but not really in firmware.

This change adds a PHDRS construct to each of the linker scripts used on ARM
which define a single segment called to_load which does not have the flag set
which would tell the linker to put headers in it. The first section defined in
the script has ": to_load" to tell the linker which segment to put it in, and
from that point on the other sections go in there by default.

Change-Id: I24b721eb436d17afd234002ae82f9166d2fcf65d
Signed-off-by: Gabe Black <gabeblack@chromium.org>
Reviewed-on: http://review.coreboot.org/3580
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2013-07-15 18:33:41 +02:00
..
arch ARM: Define custom ELF headers for ARM. 2013-07-15 18:33:41 +02:00
console usbdebug: Move EHCI BAR relocation code 2013-07-10 23:24:20 +02:00
cpu cpu: Fix spelling 2013-07-11 22:36:59 +02:00
device device: Fix spelling 2013-07-10 20:17:25 +02:00
drivers parade: Add a driver for the parade ps8625. 2013-07-10 23:20:39 +02:00
ec chromeec: Add a function to send passthrough i2c messages. 2013-07-10 23:18:30 +02:00
include SMBIOS: Add smbios_write_type11() for creating an OEM Strings structure 2013-07-15 17:06:23 +02:00
lib Add a HAVE_ARCH_MEMMOVE option to allow overriding memmove. 2013-07-14 20:33:58 +02:00
mainboard SMBIOS: Allow overriding default Manufacturer and Product names 2013-07-14 23:44:10 +02:00
northbridge Set PCI bus operations at buildtime for ramstage 2013-07-11 01:29:35 +02:00
southbridge src/southbridge/intel/{lynxpoint,bd82x6x}/spi.c: correct spelling of attempted 2013-07-12 01:01:35 +02:00
superio w83627hf/acpi: Fix endianess error in floppy drive enumeration code 2013-07-10 02:54:01 +02:00
vendorcode amd/agesa/f15/Lib/amdlib.c: Add missing breaks to switch statement 2013-06-28 01:35:20 +02:00
Kconfig Add a HAVE_ARCH_MEMMOVE option to allow overriding memmove. 2013-07-14 20:33:58 +02:00