Deal with ld's overly eager discarding of globals.
This commit is contained in:
parent
4e8ef87d03
commit
7e02935a27
|
@ -86,8 +86,10 @@ COMPONENTS_eagle.app.v6 = \
|
|||
crypto/libcrypto.a \
|
||||
dhtlib/libdhtlib.a \
|
||||
tsl2561/tsl2561lib.a \
|
||||
modules/libmodules.a
|
||||
modules/libmodules.a \
|
||||
|
||||
# Special consideration for modules to support NODEMCU_MODULE handling
|
||||
MODULES_LIB = $(filter %modules.a, $(DEP_LIBS_eagle.app.v6))
|
||||
|
||||
LINKFLAGS_eagle.app.v6 = \
|
||||
-Wl,--gc-sections \
|
||||
|
@ -98,6 +100,9 @@ LINKFLAGS_eagle.app.v6 = \
|
|||
-Wl,--no-check-sections \
|
||||
-Wl,--wrap=_xtos_set_exception_handler \
|
||||
-Wl,-static \
|
||||
-Wl,--whole-archive \
|
||||
$(MODULES_LIB) \
|
||||
-Wl,--no-whole-archive \
|
||||
-Wl,--start-group \
|
||||
-lc \
|
||||
-lgcc \
|
||||
|
|
Loading…
Reference in New Issue