summaryrefslogtreecommitdiffstats
path: root/crypto/sha/asm/keccak1600-x86_64.pl
diff options
context:
space:
mode:
authorAlexandr Nedvedicky <sashan@openssl.org>2024-04-11 09:06:47 +0200
committerTomas Mraz <tomas@openssl.org>2024-04-17 09:33:57 +0200
commitfc807a0349bbddb00273465097177025d9b4e25e (patch)
tree15888f716d5602b6571a90775c7ea9b151f886c4 /crypto/sha/asm/keccak1600-x86_64.pl
parent8d8a0144303374f69f73fc944dd55c68600d15e5 (diff)
extend x86_64-xlate.pl perlasm so it can handle .rodata sections properly
For nasm/masm assembler flavors the xlate script must make sure the code won't land in .rodata section along the data. For masm we also need to introduce an .align option which can be passed along section header. It's hint for masm to align rodata/rdata section properly. Also macos-x flavor requires small tweak to emit proper section header for its assembler style. Changes for masm flavor are based on SEGMENT description [1] in MASM reference manual. Changes for nasm flavor are based on nasm 2.14 manual chapter 7 [2]. Details behind macos-x changes can be found in 'Overview of the Mach-O Executable Format' [3] [1] https://learn.microsoft.com/en-us/cpp/assembler/masm/segment?view=msvc-170 [2] https://nasm.us/xdoc/2.14rc0/html/nasmdoc7.html [3] https://developer.apple.com/library/archive/documentation/Performance/Conceptual/CodeFootprint/Articles/MachOOverview.html Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/23997)
Diffstat (limited to 'crypto/sha/asm/keccak1600-x86_64.pl')
0 files changed, 0 insertions, 0 deletions