mirror of
https://github.com/ipxe/ipxe
synced 2025-12-18 02:20:19 +03:00
[build] Use .balign directive instead of .align
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>
This commit is contained in:
@@ -259,7 +259,7 @@ static inline void eplatform_discard ( int dummy __unused, ... ) {}
|
||||
*/
|
||||
#define __einfo_error( einfo ) ( { \
|
||||
__asm__ ( ".section \".einfo\", \"\", " PROGBITS_OPS "\n\t" \
|
||||
".align 8\n\t" \
|
||||
".balign 8\n\t" \
|
||||
"\n1:\n\t" \
|
||||
".long ( 4f - 1b )\n\t" \
|
||||
".long %c0\n\t" \
|
||||
@@ -268,7 +268,7 @@ static inline void eplatform_discard ( int dummy __unused, ... ) {}
|
||||
".long %c1\n\t" \
|
||||
"\n2:\t.asciz \"" __einfo_desc ( einfo ) "\"\n\t" \
|
||||
"\n3:\t.asciz \"" __FILE__ "\"\n\t" \
|
||||
".align 8\n\t" \
|
||||
".balign 8\n\t" \
|
||||
"\n4:\n\t" \
|
||||
".previous\n\t" : : \
|
||||
"i" ( __einfo_errno ( einfo ) ), \
|
||||
|
||||
Reference in New Issue
Block a user