coreboot-kgpe-d16/src
Julius Werner 7c6e489b23 arm: Put assembly functions into separate sections
This patch changes the ENTRY() macro in asm.h to create a new section
for every assembler function, thus providing dcache_clean/invalidate_all
and friends with the same --gc-sections goodness that our C functions
have. This requires a few minor changes of moving around data (to make
sure it ends up in the right section) and changing some libgcc functions
(which apparently need to have two names?), but nothing serious.

(You may note that some of our assembly functions have data, sometimes
even writable, within the same .text section. This has been this way
before and I'm not looking to change it for now, although it's not
totally clean. Since we don't enforce read-only sections through paging,
it doesn't really hurt.)

BUG=None
TEST=Nyan and Snow still boot. Confirm dcache_invalidate_all is not
output into any binary anymore since no one actually uses it.

Original-Change-Id: I247b29d6173ba516c8dff59126c93b66f7dc4b8d
Original-Signed-off-by: Julius Werner <jwerner@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/183891
(cherry picked from commit 4a3f2e45e06cc8592d56c3577f41ff879f10e9cc)
Signed-off-by: Marc Jones <marc.jones@se-eng.com>

Change-Id: Ieaa4f2ea9d81c5b9e2b36a772ff9610bdf6446f9
Reviewed-on: http://review.coreboot.org/7451
Tested-by: build bot (Jenkins)
Reviewed-by: David Hendricks <dhendrix@chromium.org>
2014-11-13 06:49:41 +01:00
..
arch arm: Put assembly functions into separate sections 2014-11-13 06:49:41 +01:00
console Copy u-boot sources as is and modify the tree to still build 2014-11-12 20:39:13 +01:00
cpu cpu/x86/smm/Makefile.inc: Fix up linkage rules 2014-11-11 12:34:27 +01:00
device device/dram/ddr3.c: Fix sizeof on array func param overflow 2014-11-08 07:09:34 +01:00
drivers drivers/intel/gma/intel_dp.c: Fix printf type-specifier 2014-11-11 14:42:18 +01:00
ec {arch,cpu,drivers,ec}: Don't hide pointers behind typedefs 2014-10-27 23:40:05 +01:00
include pci_ops.{c,h}: Don't hide pointers behind typedefs 2014-11-05 14:45:57 +01:00
lib src/lib/Makefile.inc: Allow rmodules to link under Clang 2014-11-12 18:13:57 +01:00
mainboard qemu-armv7: Minimal changes to pass compiling qemu-v7 platform. 2014-11-13 06:31:39 +01:00
northbridge gm45: Don't crash if less than 4G of RAM are present. 2014-11-12 20:44:25 +01:00
soc arm: Put assembly functions into separate sections 2014-11-13 06:49:41 +01:00
southbridge sch: Move to implicit length patching 2014-11-09 12:55:13 +01:00
superio superio/ite: Use common dispatch for pnp entry/exit functions 2014-11-04 11:36:32 +01:00
vendorcode vboot: provide empty vboot_verify_firmware() 2014-11-13 06:48:38 +01:00
Kconfig Kconfig: Hide DYNAMIC_CBMEM. 2014-11-09 02:03:24 +01:00