coreboot/src/lib
Julius Werner 52a92606bb linking: Repair special treatments for non-x86 bootblocks
Patch b2a62622b (linking: move romstage and bootblock to use program.ld)
unified the linker scripts between different stages. Unfortunately it
omitted several special cases from the old bootblock.ld script that are
required for non-x86 environments.

This patch expands program.ld to once again merge the .BSS into the
program image for bootblocks (ensuring correct initialization by the
external loader). It also revives the .id section (which adds a
human-readable blurb of information to the top of an image) and fixes a
problem with unintended automated section alignment.

BRANCH=None
BUG=None
TEST=Jerry and Oak boot again.

Change-Id: I54271b8b59a9c773d858d676cde0218cb7f20e74
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 6fddbc00963e363039634fa31a9b66254b6cf18f
Original-Change-Id: I4d748056f1ab29a8e730f861879982bdf4c33eab
Original-Signed-off-by: Julius Werner <jwerner@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/299413
Original-Tested-by: Yidi Lin <yidi.lin@mediatek.com>
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/11660
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
2015-09-17 14:17:55 +00:00
..
assets.c assets: abstract away the firmware assets used for booting 2015-06-02 14:10:08 +02:00
b64_decode.c
boot_device.c coreboot: introduce boot_device 2015-05-26 22:32:47 +02:00
bootmem.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
bootmode.c bootmode: add display_init_required() 2015-09-04 15:09:00 +00:00
cbfs.c cbfs: hardcode file alignment 2015-07-15 16:34:37 +02:00
cbfs_boot_props.c cbfs: hardcode file alignment 2015-07-15 16:34:37 +02:00
cbfs_spi.c cbfs: new API and better program loading 2015-06-02 14:09:31 +02:00
cbmem_common.c cbmem: add indicator to hooks if cbmem is being recovered 2015-06-09 22:03:30 +02:00
cbmem_console.c cbmem: add indicator to hooks if cbmem is being recovered 2015-06-09 22:03:30 +02:00
cbmem_stage_cache.c stage_cache: make prog const in stage_cache_add() 2015-08-14 15:17:58 +02:00
compute_ip_checksum.c
coreboot_table.c cbtable: describe boot media 2015-07-14 22:36:43 +02:00
debug.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
delay.c
edid.c edid: fix know_modes timing error 2015-08-28 06:44:20 +00:00
ext_stage_cache.c stage_cache: make prog const in stage_cache_add() 2015-08-14 15:17:58 +02:00
fallback_boot.c
fmap.c fmap: publish find_fmap_directory() 2015-07-14 15:48:54 +02:00
gcc.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
gcov-glue.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
gcov-io.c
gcov-io.h
gcov-iov.h
generic_dump_spd.c
generic_sdram.c
gpio.c arm, arm64, mips: Add rough static stack size checks with -Wstack-usage 2015-07-29 20:25:59 +02:00
halt.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
hardwaremain.c hardwaremain: Move init_timer() call to before console init 2015-06-30 08:11:16 +02:00
hexdump.c Drop "See file CREDITS..." comment 2015-09-07 15:54:50 +00:00
imd.c imd: don't recover on limit == 0 2015-05-11 22:39:13 +02:00
imd_cbmem.c cbmem: add indicator to hooks if cbmem is being recovered 2015-06-09 22:03:30 +02:00
jpeg.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
jpeg.h Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
libgcc.c lib: Unify log2() and related functions 2015-06-05 13:18:55 +02:00
libgcov.c
lzma.c lzma: Return correct amount of decompressed bytes 2015-07-06 09:40:37 +02:00
lzmadecode.c
lzmadecode.h
Makefile.inc x86: link ramstage the same way regardless of RELOCATABLE_RAMSTAGE 2015-09-09 19:36:08 +00:00
malloc.c Remove leftover smi_get_tseg_base 2015-05-29 07:06:37 +02:00
mem_pool.c coreboot: add memory pool infrastructure 2015-05-14 17:27:09 +02:00
memchr.c
memcmp.c
memcpy.c
memmove.c
memrange.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
memset.c
mocked_tlcl.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
primitive_memtest.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
prog_loaders.c stage_cache: make prog const in stage_cache_add() 2015-08-14 15:17:58 +02:00
prog_ops.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
program.ld linking: Repair special treatments for non-x86 bootblocks 2015-09-17 14:17:55 +00:00
ramtest.c
reg_script.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
region.c regions: add more helpers 2015-05-19 10:36:43 +02:00
rmodule.c assets: abstract away the firmware assets used for booting 2015-06-02 14:10:08 +02:00
rmodule.ld rmodule: use program.ld for linking 2015-09-09 19:35:30 +00:00
selfboot.c assets: abstract away the firmware assets used for booting 2015-06-02 14:10:08 +02:00
stack.c
thread.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
timer.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
timer_queue.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
timestamp.c timestamp: add tick frequency to exported table 2015-08-31 13:55:28 +00:00
tlcl.c
tlcl_internal.h
tlcl_structures.h
tpm_error_messages.h
trace.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
version.c