diff options
author | Alex Deymo <deymo@chromium.org> | 2014-08-29 01:07:48 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-09-02 20:25:22 +0000 |
commit | e08ee28548934e933733babf0bc0c418142d095d (patch) | |
tree | b630ca1f2c498a0b53ffafad712a9efeb1939567 /emerge_test.sh | |
parent | b8ff397674fb98c1d7eea864e7fa571369675131 (diff) | |
download | vboot-e08ee28548934e933733babf0bc0c418142d095d.tar.gz |
Remove futility linker script.
The futility.lds linker script was used to generate a table with
all the symbols in a specific section called .futil_cmds listed
in order under the symbol "futil_cmds". This allows the source files
to define a command and let the linker figure out the list of
compiled commands. Nevertheless, passing this linker script
makes the linker leave a gap of about 2MiB in the output ELF file.
Instead of mess up with linker scripts just to generate a table of
commands, this patch generates such table in the Makefile looking
at the included sources and compiling that table. The result is a
futility binary of about 88 KiB instead of the 2.1 MiB required
originally.
This patch also adds sys-boot/chromeos-u-boot to the list of ebuilds
tested by emerge_test.sh.
BUG=chromium:408926
BRANCH=None
TEST=BOARD=link ./emerge_test.sh
TEST=BOARD=daisy_spring ./emerge_test.sh
TEST=`readelf -S futility` shows no gap.
TEST=/usr/bin/futility shows no difference in the help output.
Change-Id: I9c0febc76140b404d48aa13e7f948e8ea77a41b5
Reviewed-on: https://chromium-review.googlesource.com/215496
Tested-by: Alex Deymo <deymo@chromium.org>
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
Diffstat (limited to 'emerge_test.sh')
-rwxr-xr-x | emerge_test.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/emerge_test.sh b/emerge_test.sh index cbe51444..5861aa25 100755 --- a/emerge_test.sh +++ b/emerge_test.sh @@ -11,6 +11,7 @@ # Required ebuilds: TEST_EBUILDS=" sys-boot/chromeos-bootimage + sys-boot/chromeos-u-boot sys-boot/coreboot sys-boot/depthcharge chromeos-base/chromeos-cryptohome |