summaryrefslogtreecommitdiff
path: root/util/cbfstool/elfheaders.c
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-10-14 10:01:05 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-11-12 18:00:16 +0000
commit898176a24c5bdde896a47bf60966d1476b4f913f (patch)
tree6a1d3e53b0e395bb1e2e05d632d829beb78acca4 /util/cbfstool/elfheaders.c
parent7d67a19cfa42a5ef3ab9734ba9e445be59fc76e3 (diff)
treewide: Replace ALIGN(x, a) by ALIGN_UP(x, a) for clarity
Change-Id: I2a255cdcbcd38406f008a26fc0ed68d532e7a721 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/68267 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'util/cbfstool/elfheaders.c')
-rw-r--r--util/cbfstool/elfheaders.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cbfstool/elfheaders.c b/util/cbfstool/elfheaders.c
index 3a53735382..39faff209d 100644
--- a/util/cbfstool/elfheaders.c
+++ b/util/cbfstool/elfheaders.c
@@ -1174,7 +1174,7 @@ int elf_writer_serialize(struct elf_writer *ew, struct buffer *out)
metadata_size += (Elf64_Xword)ew->ehdr.e_phnum * ew->ehdr.e_phentsize;
shstroffset = metadata_size;
/* Align up section header string size and metadata size to 4KiB */
- metadata_size = ALIGN(metadata_size + shstrlen, 4096);
+ metadata_size = ALIGN_UP(metadata_size + shstrlen, 4096);
if (buffer_create(out, metadata_size + program_size, "elfout")) {
ERROR("Could not create output buffer for ELF.\n");