Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 941552d

Browse files
committedMar 13, 2024·
attempt to repro the issue in ci
1 parent 7c2aa73 commit 941552d

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
 

‎.github/workflows/dev-short-tests.yml

+1
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ jobs:
409409
- name: ARM64
410410
if: ${{ matrix.name == 'ARM64' }}
411411
run: |
412+
LDFLAGS="-static -z force-bti" MOREFLAGS="-mbranch-protection=standard" CC=$XCC QEMU_SYS=$XEMU make clean check
412413
LDFLAGS="-static" CC=$XCC QEMU_SYS=$XEMU make clean check
413414
- name: PPC
414415
if: ${{ matrix.name == 'PPC' }}

‎lib/decompress/huf_decompress_amd64.S

+12
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@
1515
*/
1616
#if defined(__ELF__) && defined(__GNUC__)
1717
.section .note.GNU-stack,"",%progbits
18+
19+
.pushsection .note.gnu.property, "a"
20+
.balign 8
21+
.long 4 /* size of the name - "GNU\0" */
22+
.long 0x10 /* size of descriptor */
23+
.long 0x5 /* NT_GNU_PROPERTY_TYPE_0 */
24+
.asciz "GNU"
25+
.long 0xc0000000 /* pr_type - GNU_PROPERTY_AARCH64_FEATURE_1_AND */
26+
.long 4 /* pr_datasz - 4 bytes */
27+
.long 1 /* pr_data - GNU_PROPERTY_AARCH64_FEATURE_1_BTI */
28+
.long 0 /* pr_padding - bring everything to 8 byte alignment */
29+
.popsection
1830
#endif
1931

2032
#if ZSTD_ENABLE_ASM_X86_64_BMI2

0 commit comments

Comments
 (0)
Please sign in to comment.