mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
arm/config: declare ELFSIZE_[32|64] respectively
The commit bcfaea685d
"arm/config: Declare ELFSIZE_64" was not correct.
For 32-bit ARM, ELFCLASS32 (i.e. 32-bit data types) will always
be used so we need to set ELFSIZE to 32.
Reported-by: Julien Grall <julien.grall@arm.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Julien Grall <julien.grall@arm.com>
This commit is contained in:
1 parent
8738c76f0e
commit
d0540cbd4a
1 file changed
+2
-3
@@ -9,8 +9,10 @@
|
||||
|
||||
#if defined(CONFIG_ARM_64)
|
||||
# define LONG_BYTEORDER 3
|
||||
# define ELFSIZE 64
|
||||
#else
|
||||
# define LONG_BYTEORDER 2
|
||||
# define ELFSIZE 32
|
||||
#endif
|
||||
|
||||
#define BYTES_PER_LONG (1 << LONG_BYTEORDER)
|
||||
@@ -20,9 +22,6 @@
|
||||
/* xen_ulong_t is always 64 bits */
|
||||
#define BITS_PER_XEN_ULONG 64
|
||||
|
||||
/* And ELF files are also 64-bit. */
|
||||
#define ELFSIZE 64
|
||||
|
||||
#define CONFIG_PAGING_ASSISTANCE 1
|
||||
|
||||
#define CONFIG_PAGING_LEVELS 3
|
||||
|
||||