mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-25 20:02:37 +03:00
Merge pull request #4399 from ivankravets/master
Drop PlatformIO lines from LD script; append object suffix to the end of target name // Resolve #4355
This commit is contained in:
commit
e5746c0f5a
@ -26,8 +26,23 @@ http://arduino.cc/en/Reference/HomePage
|
||||
|
||||
from os.path import isdir, join
|
||||
|
||||
from SCons import Builder, Util
|
||||
from SCons.Script import DefaultEnvironment
|
||||
|
||||
|
||||
def scons_patched_match_splitext(path, suffixes=None):
|
||||
"""
|
||||
Patch SCons Builder, append $OBJSUFFIX to the end of each target
|
||||
"""
|
||||
tokens = Util.splitext(path)
|
||||
if suffixes and tokens[1] and tokens[1] in suffixes:
|
||||
return (path, tokens[1])
|
||||
return tokens
|
||||
|
||||
|
||||
Builder.match_splitext = scons_patched_match_splitext
|
||||
|
||||
|
||||
env = DefaultEnvironment()
|
||||
platform = env.PioPlatform()
|
||||
|
||||
|
@ -91,17 +91,6 @@ SECTIONS
|
||||
*.c.o( EXCLUDE_FILE (umm_malloc.c.o) .literal*, \
|
||||
EXCLUDE_FILE (umm_malloc.c.o) .text*)
|
||||
*.cpp.o(.literal*, .text*)
|
||||
/* PlatformIO */
|
||||
/* framework */
|
||||
*.pioenvs\\*\\lib*.a:(EXCLUDE_FILE (umm_malloc.o) .literal*, EXCLUDE_FILE (umm_malloc.o) .text*)
|
||||
*.pioenvs/*/lib*.a:(EXCLUDE_FILE (umm_malloc.o) .literal*, EXCLUDE_FILE (umm_malloc.o) .text*)
|
||||
/* project dependencies */
|
||||
*.pioenvs\\*\\lib*\\lib*.a:(.literal*, .text*)
|
||||
*.pioenvs/*/lib*/lib*.a:(.literal*, .text*)
|
||||
/* project source objects */
|
||||
*.pioenvs\\*\\src\\*.o(.literal*, .text*)
|
||||
*.pioenvs/*/src/*.o(.literal*, .text*)
|
||||
/* End PlatformIO */
|
||||
*libc.a:(.literal .text .literal.* .text.*)
|
||||
*libm.a:(.literal .text .literal.* .text.*)
|
||||
*libgcc.a:_umoddi3.o(.literal .text)
|
||||
@ -166,17 +155,6 @@ SECTIONS
|
||||
*.cpp.o(.iram.text)
|
||||
*.c.o(.iram.text)
|
||||
*(.rodata._ZTV*) /* C++ vtables */
|
||||
/* PlatformIO */
|
||||
/* framework */
|
||||
*.pioenvs\\*\\lib*.a:(.iram.text)
|
||||
*.pioenvs/*/lib*.a:(.iram.text)
|
||||
/* project dependencies */
|
||||
*.pioenvs\\*\\lib*\\lib*.a:(.iram.text)
|
||||
*.pioenvs/*/lib*/lib*.a:(.iram.text)
|
||||
/* project source objects */
|
||||
*.pioenvs\\*\\src\\*.o(.iram.text)
|
||||
*.pioenvs/*/src/*.o(.iram.text)
|
||||
/* End PlatformIO */
|
||||
*(.fini.literal)
|
||||
*(.fini)
|
||||
*(.gnu.version)
|
||||
|
Loading…
x
Reference in New Issue
Block a user