Skip to content

Commit 4b9b718

Browse files
0xc0170c1728p9
authored andcommitted
tools: fix objects names that we need because of weak linkage
Fixing retarget and board object files, plus adding new one mbed_main.
1 parent 2977d0c commit 4b9b718

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tools/build_api.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,13 +1040,14 @@ def build_mbed_libs(target, toolchain_name, verbose=False,
10401040

10411041
# A number of compiled files need to be copied as objects as opposed to
10421042
# way the linker search for symbols in archives. These are:
1043-
# - retarget.o: to make sure that the C standard lib symbols get
1043+
# - mbed_retarget.o: to make sure that the C standard lib symbols get
10441044
# overridden
1045-
# - board.o: mbed_die is weak
1045+
# - mbed_board.o: mbed_die is weak
10461046
# - mbed_overrides.o: this contains platform overrides of various
10471047
# weak SDK functions
1048-
separate_names, separate_objects = ['retarget.o', 'board.o',
1049-
'mbed_overrides.o'], []
1048+
# - mbed_main.o: this contains main redirection
1049+
separate_names, separate_objects = ['mbed_retarget.o', 'mbed_board.o',
1050+
'mbed_overrides.o', 'mbed_main.o'], []
10501051

10511052
for obj in objects:
10521053
for name in separate_names:

0 commit comments

Comments
 (0)