mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zipl: Compute the bootloader stage size to workaround PIE
Closes: #30 Signed-off-by: Dan Horák <dan@danny.cz> Reviewed-by: Stefan Haberland <sth@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user