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:
Konrad Rzeszutek Wilk authored and Jan Beulich committed 2016-03-17 13:50:08 +01:00
1 parent 8738c76f0e
commit d0540cbd4a
1 file changed
+2 -3
+2 -3
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.