Merge pull request #1020 from shenki/binutils-fixes

Binutils fixes
This commit is contained in:
Tim Ansell 2021-09-06 17:16:56 -07:00 committed by GitHub
commit bafe32dd13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -58,7 +58,6 @@ class Microwatt(CPU):
flags += "-mlittle-endian " flags += "-mlittle-endian "
flags += "-mstrict-align " flags += "-mstrict-align "
flags += "-fno-stack-protector " flags += "-fno-stack-protector "
flags += "-mcmodel=small "
flags += "-D__microwatt__ " flags += "-D__microwatt__ "
return flags return flags

View file

@ -53,7 +53,7 @@ INCLUDES = -I$(SOC_DIRECTORY)/software/include/base \
COMMONFLAGS = $(DEPFLAGS) -Os $(CPUFLAGS) -g3 -fomit-frame-pointer -Wall -fno-builtin -nostdinc -fno-stack-protector $(INCLUDES) COMMONFLAGS = $(DEPFLAGS) -Os $(CPUFLAGS) -g3 -fomit-frame-pointer -Wall -fno-builtin -nostdinc -fno-stack-protector $(INCLUDES)
CFLAGS = $(COMMONFLAGS) -fexceptions -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes CFLAGS = $(COMMONFLAGS) -fexceptions -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes
CXXFLAGS = $(COMMONFLAGS) -std=c++11 -I$(SOC_DIRECTORY)/software/include/basec++ -fexceptions -fno-rtti -ffreestanding CXXFLAGS = $(COMMONFLAGS) -std=c++11 -I$(SOC_DIRECTORY)/software/include/basec++ -fexceptions -fno-rtti -ffreestanding
LDFLAGS = -nostdlib -nodefaultlibs -L$(BUILDINC_DIRECTORY) LDFLAGS = -nostdlib -nodefaultlibs -Wl,--no-dynamic-linker -Wl,--build-id=none -L$(BUILDINC_DIRECTORY)
define compilexx define compilexx
$(CX) -c $(CXXFLAGS) $(1) $< -o $@ $(CX) -c $(CXXFLAGS) $(1) $< -o $@