From 15ff7d496db900e9e49dc4ea87e398fe4f4af7cd Mon Sep 17 00:00:00 2001 From: Rong Tao Date: Tue, 16 Apr 2024 14:59:57 +0800 Subject: [PATCH] tests/hello: Makefile: -fno-PIE can remove R_X86_64_REX_GOTPCRELX Link: https://github.com/Rtoax/ulpatch/issues/7 Signed-off-by: Rong Tao --- tests/hello/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/hello/Makefile b/tests/hello/Makefile index 99503882..75f761fa 100644 --- a/tests/hello/Makefile +++ b/tests/hello/Makefile @@ -33,6 +33,7 @@ CFLAGS_ULP := CFLAGS_ULP += -O0 ifdef ULP_PIC CFLAGS_ULP += -fpic + CFLAGS_ULP += -fno-PIE endif LDFLAGS_ULP :=