Skip to content

Commit

Permalink
nds32: Remove gcc unused option
Browse files Browse the repository at this point in the history
-G0 is an old option, not support now,
So remove it.
It can help to fix compile error when
build with nds32 pre-build toolchain.

Signed-off-by: Rick Chen <[email protected]>
Cc: Greentime Hu <[email protected]>
  • Loading branch information
Rick Chen authored and Andes committed Jan 22, 2019
1 parent f715ed4 commit 28c107f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/nds32/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ LDFLAGS_STANDALONE += -T $(srctree)/examples/standalone/nds32.lds

PLATFORM_RELFLAGS += -fno-common -mrelax
PLATFORM_RELFLAGS += -gdwarf-2
PLATFORM_CPPFLAGS += -D__nds32__ -G0 -ffixed-10 -fpie
PLATFORM_CPPFLAGS += -D__nds32__ -ffixed-10 -fpie

LDFLAGS_u-boot = --gc-sections --relax -pie

0 comments on commit 28c107f

Please sign in to comment.