diff options
author | Julius Werner <jwerner@chromium.org> | 2021-01-12 15:21:03 -0800 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2021-02-18 02:32:28 +0000 |
commit | ff61a39e90e0f8cb94a3dd015a2ebd6cae728cc6 (patch) | |
tree | a61e4d212aa5ac7522a337151bbea807403c7fbf /util/cbfstool/common.h | |
parent | 84446e6e54fa9df42fcbb8450c9a071feaf1f8d0 (diff) |
cbfstool: Remove location pointer from parse_elf_to_stage()
The *location argument to parse_elf_to_stage() is a relic from code all
the way back to 2009 where this function was still used to parse XIP
stages. Nowadays we have a separate parse_elf_to_xip_stage() for that,
so there is no need to heed XIP concerns here. Having a pointer to
represent the location in flash is absolutely irrelevant to a non-XIP
stage, and it is used incorrectly -- we just get lucky that no code path
in cbfstool can currently lead to that value being anything other than
0, otherwise the adjustment of data_start to be no lower than *location
could easily screw things up. This patch removes it.
Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: Ia7f850c0edd7536ed3bef643efaae7271599313d
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49369
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'util/cbfstool/common.h')
-rw-r--r-- | util/cbfstool/common.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util/cbfstool/common.h b/util/cbfstool/common.h index 1c83045eee..db9c7e7297 100644 --- a/util/cbfstool/common.h +++ b/util/cbfstool/common.h @@ -174,8 +174,7 @@ int parse_flat_binary_to_payload(const struct buffer *input, enum cbfs_compression algo); /* cbfs-mkstage.c */ int parse_elf_to_stage(const struct buffer *input, struct buffer *output, - enum cbfs_compression algo, uint32_t *location, - const char *ignore_section); + enum cbfs_compression algo, const char *ignore_section); /* location is TOP aligned. */ int parse_elf_to_xip_stage(const struct buffer *input, struct buffer *output, uint32_t *location, const char *ignore_section); |