Neon/AArch64: Don't put GAS functions in .rodata

Regression introduced by 240ba417aa

Closes #546
This commit is contained in:
DRC
2021-08-25 12:07:58 -05:00
parent 0a9b972178
commit 129f0cb763
3 changed files with 15 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ if(CMAKE_EXECUTABLE_SUFFIX)
endif()
project(libjpeg-turbo C)
set(VERSION 2.1.1)
set(VERSION 2.1.2)
string(REPLACE "." ";" VERSION_TRIPLET ${VERSION})
list(GET VERSION_TRIPLET 0 VERSION_MAJOR)
list(GET VERSION_TRIPLET 1 VERSION_MINOR)

View File

@@ -1,3 +1,15 @@
2.1.2
=====
1. Fixed a regression introduced by 2.1 beta1[13] that caused the remaining
GAS implementations of AArch64 (Arm 64-bit) Neon SIMD functions (which are used
by default with GCC for performance reasons) to be placed in the `.rodata`
section rather than in the `.text` section. This caused the GNU linker to
automatically place the `.rodata` section in an executable segment, which
prevented libjpeg-turbo from working properly with other linkers and also
represented a potential security risk.
2.1.1
=====

View File

@@ -182,6 +182,8 @@ Ljsimd_huff_encode_one_block_neon_consts:
.byte 4, 5, 6, 7, 255, 255, 255, 255, \
255, 255, 255, 255, 255, 255, 255, 255 /* L7 : 1 line OK */
.text
/*****************************************************************************/