Skip to content

Commit

Permalink
tests/hello: Makefile: Add -fno-common
Browse files Browse the repository at this point in the history
Because kernel module have this compiler's argument [1].

[1] #12

Signed-off-by: Rong Tao <rongtao@cestc.cn>
  • Loading branch information
Rtoax committed Apr 16, 2024
1 parent 15ff7d4 commit fcb631f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/hello/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ CFLAGS_ULP += -O0
ifdef ULP_PIC
CFLAGS_ULP += -fpic
CFLAGS_ULP += -fno-PIE
CFLAGS_ULP += -fno-common
endif

LDFLAGS_ULP :=
Expand Down
1 change: 1 addition & 0 deletions tests/hello/patch-failed-bss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

0 comments on commit fcb631f

Please sign in to comment.