mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-06-10 15:29:52 +00:00
Add support for SunOS function/data sections and associated
section gc. Patch by Bill Rushmore. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231128 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0bec909f40
commit
221418eee1
|
@ -631,18 +631,25 @@ ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
|
||||||
ifneq ($(HOST_OS),Darwin)
|
ifneq ($(HOST_OS),Darwin)
|
||||||
ifneq ($(HOST_ARCH),Mips)
|
ifneq ($(HOST_ARCH),Mips)
|
||||||
CXX.Flags += -ffunction-sections -fdata-sections
|
CXX.Flags += -ffunction-sections -fdata-sections
|
||||||
|
ifeq ($(HOST_OS),SunOS)
|
||||||
|
CXX.Flags += -falign-functions=8
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifndef NO_DEAD_STRIP
|
ifndef NO_DEAD_STRIP
|
||||||
ifeq ($(HOST_OS),Darwin)
|
ifeq ($(HOST_OS),Darwin)
|
||||||
LD.Flags += -Wl,-dead_strip
|
LD.Flags += -Wl,-dead_strip
|
||||||
|
else
|
||||||
|
ifeq ($(HOST_OS),SunOS)
|
||||||
|
LD.Flags += -Wl,-z -Wl,discard-unused=sections
|
||||||
else
|
else
|
||||||
ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
|
ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
|
||||||
LD.Flags += -Wl,--gc-sections
|
LD.Flags += -Wl,--gc-sections
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# Adjust linker flags for building an executable
|
# Adjust linker flags for building an executable
|
||||||
ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
|
ifneq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user