runtime_loader: adjust MAX_PAGE_SIZE for ARM

gcc generates binaries with segments aligned on 0x10000
because this is the max page size defined in bfd

This change allows runtime_loader to load ARM binaries
without complaining for unreasonable amount of space
between segments.

Change-Id: Iec345980ca7ff72786173772a6deb40f5ca0b0ae
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4974
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
This commit is contained in:
David Karoly 2022-02-18 17:48:11 +01:00 committed by waddlesplash
parent 7d2a6f2d99
commit a21676b669

View File

@ -33,6 +33,9 @@
// page segment alignment.
# define RLD_PROGRAM_BASE 0x600000
# define MAX_PAGE_SIZE 0x200000
#elif __arm__
# define RLD_PROGRAM_BASE 0x200000
# define MAX_PAGE_SIZE 0x10000
#else
# define RLD_PROGRAM_BASE 0x200000
# define MAX_PAGE_SIZE B_PAGE_SIZE