stratosphere: discard unnecessary .eh_frame segment
This commit is contained in:
1 parent
af7233d84c
commit
b5816b4a91
3 files changed
+12
-1
No files matched your search
@@ -36,7 +36,7 @@ export CXXWRAPS := -Wl,--wrap,__cxa_pure_virtual \
|
|||||||
-Wl,--wrap,_ZSt20__throw_length_errorPKc \
|
-Wl,--wrap,_ZSt20__throw_length_errorPKc \
|
||||||
-Wl,--wrap,_ZNSt11logic_errorC2EPKc
|
-Wl,--wrap,_ZNSt11logic_errorC2EPKc
|
||||||
|
|
||||||
export LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs $(SETTINGS) $(CXXWRAPS) -Wl,-Map,$(notdir $*.map)
|
export LDFLAGS = -specs=$(ATMOSPHERE_LIBRARIES_DIR)/libstratosphere/stratosphere.specs -specs=$(DEVKITPRO)/libnx/switch.specs $(SETTINGS) $(CXXWRAPS) -Wl,-Map,$(notdir $*.map)
|
||||||
|
|
||||||
export LIBS = -lstratosphere -lnx
|
export LIBS = -lstratosphere -lnx
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
SECTIONS
|
||||||
|
{
|
||||||
|
/* Discard .eh_frame section */
|
||||||
|
/DISCARD/ : { *(.group .comment .note .interp)
|
||||||
|
EXCLUDE_FILE(*crtbegin.o) *(.eh_frame_hdr .eh_frame)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
%rename link pre_old_link
|
||||||
|
|
||||||
|
*link:
|
||||||
|
%(pre_old_link) -T %:getenv(ATMOSPHERE_LIBRARIES_DIR /libstratosphere/discard-ehframe.ld)
|
||||||
Reference in new issue
Block a user