mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
x86 asm: Replace .align with .balign
The .align directive used to align storage locations is ambiguous. On some platforms and assemblers it takes a byte count, on others the argument is interpreted as a shift value. The current usage expects the first interpretation. Replace it with the unambiguous .balign directive which always expects a byte count, regardless of platform and assembler. Reviewed-by: Jorgen Lundman <lundman@lundman.net> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Signed-off-by: Attila Fülöp <attila@fueloep.org> Closes #14422
This commit is contained in:
committed by
Brian Behlendorf
parent
58ca7b1011
commit
037e4f2536
@@ -35,7 +35,7 @@
|
||||
#define ENTRY(sym) \
|
||||
.text; \
|
||||
.globl sym; \
|
||||
.align 2; \
|
||||
.balign 2; \
|
||||
.type sym,#function; \
|
||||
sym:
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
#define ENTRY(x) \
|
||||
.text; \
|
||||
.syntax unified; \
|
||||
.align 2; \
|
||||
.balign 2; \
|
||||
.global x; \
|
||||
.type x,#function; \
|
||||
_FUNC_MODE; \
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
#define ENTRY(x) \
|
||||
.text; \
|
||||
.align 8; \
|
||||
.balign 8; \
|
||||
.globl x; \
|
||||
.type x, @function; \
|
||||
x:
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
#ifdef PPC64_ELF_ABI_v2
|
||||
|
||||
#define ENTRY(name) \
|
||||
.align 2 ; \
|
||||
.balign 2 ; \
|
||||
.type name,@function; \
|
||||
.weak name; \
|
||||
name:
|
||||
@@ -64,7 +64,7 @@ name:
|
||||
#define XGLUE(a,b) a##b
|
||||
#define GLUE(a,b) XGLUE(a,b)
|
||||
#define ENTRY(name) \
|
||||
.align 2 ; \
|
||||
.balign 2 ; \
|
||||
.weak name; \
|
||||
.weak GLUE(.,name); \
|
||||
.pushsection ".opd","aw"; \
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
#define ENTRY(x) \
|
||||
.text ; \
|
||||
.align 32 ; \
|
||||
.balign 32 ; \
|
||||
.globl x ; \
|
||||
.type x,@function ; \
|
||||
x:
|
||||
|
||||
Reference in New Issue
Block a user