mirror of
https://github.com/ipxe/ipxe
synced 2026-01-13 00:48:39 +03:00
The semantics of the assembler's .align directive vary by CPU architecture. For the ARM builds, it specifies a power of two rather than a number of bytes. This currently leads to the .einfo entries (which do not appear in the final binary) having an alignment of 256 bytes for the ARM builds. Fix by switching to the GNU-specific directive .balign, which is consistent across architectures Signed-off-by: Michael Brown <mcb30@ipxe.org>
22 lines
423 B
ArmAsm
22 lines
423 B
ArmAsm
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )
|
|
|
|
.arch i386
|
|
|
|
#ifdef __x86_64__
|
|
#define STACK_SIZE 8192
|
|
#else
|
|
#define STACK_SIZE 4096
|
|
#endif
|
|
|
|
/****************************************************************************
|
|
* Internal stack
|
|
****************************************************************************
|
|
*/
|
|
.section ".stack", "aw", @nobits
|
|
.balign 8
|
|
.globl _stack
|
|
_stack:
|
|
.space STACK_SIZE
|
|
.globl _estack
|
|
_estack:
|