diff --git a/tests/hello/Makefile b/tests/hello/Makefile index 75f761fa..ffeef4ce 100644 --- a/tests/hello/Makefile +++ b/tests/hello/Makefile @@ -34,6 +34,7 @@ CFLAGS_ULP += -O0 ifdef ULP_PIC CFLAGS_ULP += -fpic CFLAGS_ULP += -fno-PIE + CFLAGS_ULP += -fno-common endif LDFLAGS_ULP := diff --git a/tests/hello/patch-failed-bss.c b/tests/hello/patch-failed-bss.c index 75c742db..9c6becd9 100644 --- a/tests/hello/patch-failed-bss.c +++ b/tests/hello/patch-failed-bss.c @@ -12,5 +12,6 @@ static int static_i; void ulp_failed_bss(unsigned long ul) { static_i += 2; + printf("static_i = %d\n", static_i); } ULPATCH_INFO(ulp_failed_bss, print_hello, "Rong Tao");