mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-28 16:32:43 +00:00
btrfs-progs: crypto: fix readonly relocation of the jumptable
Without this, the btrfs programs fail to link when build with -Wl,-z,relro, due to the jumptable containing relocations. Pull-request: #675 Signed-off-by: Ariadne Conill <ariadne@dereferenced.org> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
f7ecc34555
commit
b390c276c2
@ -321,10 +321,10 @@ LABEL less_than_ %j # less_than_j: Length should be in
|
||||
.size crc_pcl, .-crc_pcl
|
||||
###SYM_FUNC_END(crc_pcl)
|
||||
|
||||
.section .rodata, "a", @progbits
|
||||
################################################################
|
||||
## jump table Table is 129 entries x 2 bytes each
|
||||
################################################################
|
||||
.data
|
||||
.align 4
|
||||
jump_table:
|
||||
i=0
|
||||
@ -340,6 +340,7 @@ JMPTBL_ENTRY %i
|
||||
## PCLMULQDQ tables
|
||||
## Table is 128 entries x 2 words (8 bytes) each
|
||||
################################################################
|
||||
.section .rodata, "a", @progbits
|
||||
.align 8
|
||||
K_table:
|
||||
.long 0x493c7d27, 0x00000001
|
||||
|
Loading…
Reference in New Issue
Block a user