From: Yao Zi <zi...@di...> - 2025-05-17 10:52:42
|
The inline assembly chunk contains abosulute address references to zz_int, which isn't practical in PIE files and results in text relocations. ld.bfd may throw out some warnings, depending on build-time configuration, warning: relocation in read-only section `.text' warning: creating DT_TEXTREL in a PIE and LLVM ld.lld doesn't even allow text relocations by default. Additionally, dynamic loader of musl-libc doesn't support text relocations, thus the test will segfault on musl even built successfully. Let's just apply @FLAG_NO_PIE@ for it and disable PIE. Signed-off-by: Yao Zi <zi...@di...> --- memcheck/tests/amd64-linux/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/memcheck/tests/amd64-linux/Makefile.am b/memcheck/tests/amd64-linux/Makefile.am index 26e8c8ed549c..240517f6258d 100644 --- a/memcheck/tests/amd64-linux/Makefile.am +++ b/memcheck/tests/amd64-linux/Makefile.am @@ -28,4 +28,5 @@ AM_CCASFLAGS += @FLAG_M64@ defcfaexpr_SOURCES = defcfaexpr.S defcfaexpr_CFLAGS = $(AM_CFLAGS) @FLAG_NO_PIE@ +int3_amd64_CFLAGS = $(AM_CFLAGS) @FLAG_NO_PIE@ reallocarray_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_ALLOC_SIZE_LARGER_THAN@ -- 2.49.0 |