From 0fbc4edd2972af47dab1fa8d8565157e9f86e2a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Fri, 13 Apr 2018 10:51:00 +0200 Subject: [PATCH] zipl: Compute the bootloader stage size to workaround PIE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: #30 Signed-off-by: Dan Horák Reviewed-by: Stefan Haberland Signed-off-by: Jan Höppner --- zipl/src/boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipl/src/boot.c b/zipl/src/boot.c index 9daf47b9..279d2468 100644 --- a/zipl/src/boot.c +++ b/zipl/src/boot.c @@ -21,7 +21,7 @@ #include "error.h" #include "misc.h" -#define DATA_SIZE(x) ((size_t) (&_binary_##x##_bin_size)) +#define DATA_SIZE(x) ((size_t) (&_binary_##x##_bin_end - &_binary_##x##_bin_start)) #define DATA_ADDR(x) (&_binary_##x##_bin_start) #define STAGE2_MAX_SIZE 0x3000