diff options
author | Petr Cvek <petrcvekcz@gmail.com> | 2022-07-13 05:23:15 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-07-14 12:45:03 +0000 |
commit | 552c052a94922a7a898e21cf1760d74d23d8b95b (patch) | |
tree | 87f19dd0b156f87ffcbf3e34151f767f7617f095 /util/sconfig | |
parent | 97b0cf774d84c164b32784209c4f6bf5fdfc70ad (diff) |
Makefile.inc: objcopy extracts a wrong section of cbfs_master_header
Commit 75226bb879837 ("Makefile.inc: Generate master header and pointer
as C structs") may cause objcopy to copy a wrong section of object file
resulting in miscompiled image with missing CBFS master header. This
makes the usage of secondary payloads impossible.
For example a wrong section for CONFIG_ANY_TOOLCHAIN +
objcopy 2.38-slack151 will copy ".note.gnu.property".
This patch constraints the sections to .data and .bss only.
Signed-off-by: Petr Cvek <petrcvekcz@gmail.com>
Change-Id: I1b9a73ece7067c9c5100cb294775078f838e263b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65808
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'util/sconfig')
0 files changed, 0 insertions, 0 deletions