diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2024-09-19 14:40:09 +0200 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2024-09-23 17:57:04 +0200 |
commit | c902b578eebfe0739e8ec491b60f2f37dfeb09c0 (patch) | |
tree | 991951b859ed3c69a34588ff2e4ded835b672ccb /arch | |
parent | e08ec26928554c36e34e089f663dc9114d77b68c (diff) |
s390/vdso: Use SYM_DATA_START_LOCAL()/SYM_DATA_END() for data objects
Use SYM_DATA_START_LOCAL()/SYM_DATA_END() in vgetrandom-chacha.S so
that the constants end up in an object with correct size:
readelf -Ws vgetrandom-chacha.o
Num: Value Size Type Bind Vis Ndx Name
...
5: 0000000000000000 32 OBJECT LOCAL DEFAULT 5 chacha20_constants
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Jens Remus <jremus@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/kernel/vdso64/vgetrandom-chacha.S | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/s390/kernel/vdso64/vgetrandom-chacha.S b/arch/s390/kernel/vdso64/vgetrandom-chacha.S index 894954bf3b41..4c52ba78e060 100644 --- a/arch/s390/kernel/vdso64/vgetrandom-chacha.S +++ b/arch/s390/kernel/vdso64/vgetrandom-chacha.S @@ -23,9 +23,10 @@ .section .rodata .balign 32 -.Lconstants: +SYM_DATA_START_LOCAL(chacha20_constants) .long 0x61707865,0x3320646e,0x79622d32,0x6b206574 # endian-neutral .long 0x03020100,0x07060504,0x0b0a0908,0x0f0e0d0c # byte swap +SYM_DATA_END(chacha20_constants) .text /* @@ -40,7 +41,7 @@ */ SYM_FUNC_START(__arch_chacha20_blocks_nostack) CFI_STARTPROC - larl %r1,.Lconstants + larl %r1,chacha20_constants /* COPY0 = "expand 32-byte k" */ VL COPY0,0,,%r1 |