Skip to content

Commit c902b57

Browse files
hcahcaVasily Gorbik
authored andcommitted
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>
1 parent e08ec26 commit c902b57

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arch/s390/kernel/vdso64/vgetrandom-chacha.S

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@
2323
.section .rodata
2424

2525
.balign 32
26-
.Lconstants:
26+
SYM_DATA_START_LOCAL(chacha20_constants)
2727
.long 0x61707865,0x3320646e,0x79622d32,0x6b206574 # endian-neutral
2828
.long 0x03020100,0x07060504,0x0b0a0908,0x0f0e0d0c # byte swap
29+
SYM_DATA_END(chacha20_constants)
2930

3031
.text
3132
/*
@@ -40,7 +41,7 @@
4041
*/
4142
SYM_FUNC_START(__arch_chacha20_blocks_nostack)
4243
CFI_STARTPROC
43-
larl %r1,.Lconstants
44+
larl %r1,chacha20_constants
4445

4546
/* COPY0 = "expand 32-byte k" */
4647
VL COPY0,0,,%r1

0 commit comments

Comments
 (0)