Skip to content

Commit

Permalink
Switch to automatic linking
Browse files Browse the repository at this point in the history
  • Loading branch information
vshymanskyy committed Sep 12, 2024
1 parent f83a2b4 commit 633387d
Show file tree
Hide file tree
Showing 152 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
echo "Installing WABT"
wget -qO- https://github.com/WebAssembly/wabt/releases/download/1.0.36/wabt-1.0.36-ubuntu-20.04.tar.gz | tar xz -C ./tools
echo "Installing MicroPython"
wget -qO- https://github.com/micropython/micropython/archive/refs/heads/master.tar.gz | tar xz -C ./tools
wget -qO- https://github.com/vshymanskyy/micropython/archive/refs/heads/mpy-ld-link-archives.tar.gz | tar xz -C ./tools
pip3 install -U pyelftools tabulate
Expand All @@ -40,6 +40,6 @@ jobs:
export PATH=$PWD/tools/xtensa-lx106-elf/bin:$PATH
export PATH=$PWD/tools/xtensa-esp32-elf/bin:$PATH
export PATH=$PWD/tools/wabt-1.0.36/bin:$PATH
export MPY_DIR=$PWD/tools/micropython-master
export MPY_DIR=$PWD/tools/micropython-mpy-ld-link-archives
python3 buildall.py
8 changes: 1 addition & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ ifeq ($(ARCH),xtensa)
SRC += runtime/esp8266-rom.S
endif

SRC_O = $(wildcard runtime/libgcc-$(ARCH)/*.o)

# Wasm module to build
WASM ?= test/$(APP).wasm

Expand All @@ -33,11 +31,7 @@ include $(MPY_DIR)/py/dynruntime.mk
CFLAGS += -Os -Iruntime -I$(BUILD) -Wno-unused-value -Wno-unused-function \
-Wno-unused-variable -Wno-unused-but-set-variable

LIBGCC = $(realpath $(shell $(CROSS)gcc $(CFLAGS) --print-libgcc-file-name))
LIBM = $(realpath $(shell $(CROSS)gcc $(CFLAGS) --print-file-name=libm.a))

$(info libgcc: $(LIBGCC))
$(info libm: $(LIBM))
#MPY_LD_FLAGS += -v

#CLEAN_EXTRA += $(BUILD)

Expand Down
Binary file removed runtime/libgcc-armv6m/_aeabi_ldivmod.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_aeabi_uldivmod.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_arm_cmpdf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_arm_cmpsf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_arm_fixdfsi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_arm_fixsfsi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_arm_fixunsdfsi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_arm_fixunssfsi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_arm_floatdidf.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_arm_floatdisf.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_arm_floatundidf.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_arm_floatundisf.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_arm_muldivdf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_arm_muldivsf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_arm_negdf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_arm_negsf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_arm_truncdfsf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_arm_unorddf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_arm_unordsf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_ashldi3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_ashrdi3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_clzdi2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_clzsi2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_ctzsi2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_divdi3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_divsi3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_fixunsdfdi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_fixunsdfsi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_muldi3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_thumb1_case_uhi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_thumb1_case_uqi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_udivmoddi4.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/_udivsi3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/adddf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/addsf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/bpabi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/divdf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/eqdf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/eqsf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/extendsfdf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/fixdfsi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/fixsfsi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/floatsidf.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/floatsisf.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/floatunsidf.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/gedf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/gesf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/ledf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/lesf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/muldf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/mulsf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/subdf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/subsf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/truncdfsf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/unorddf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv6m/unordsf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_aeabi_ldivmod.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_aeabi_uldivmod.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_arm_addsubdf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_arm_addsubsf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_arm_cmpdf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_arm_cmpsf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_arm_fixdfsi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_arm_fixsfsi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_arm_fixunsdfsi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_arm_fixunssfsi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_arm_floatdidf.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_arm_floatdisf.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_arm_floatundidf.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_arm_floatundisf.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_arm_muldf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_arm_muldivdf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_arm_muldivsf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_arm_mulsf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_arm_negdf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_arm_negsf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_arm_truncdfsf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_arm_unorddf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_arm_unordsf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emdp/_udivmoddi4.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_aeabi_ldivmod.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_aeabi_uldivmod.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_arm_addsubdf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_arm_addsubsf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_arm_cmpdf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_arm_cmpsf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_arm_fixdfsi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_arm_fixsfsi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_arm_fixunsdfsi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_arm_fixunssfsi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_arm_floatdidf.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_arm_floatdisf.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_arm_floatundidf.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_arm_floatundisf.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_arm_muldf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_arm_muldivdf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_arm_muldivsf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_arm_mulsf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_arm_negdf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_arm_negsf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_arm_truncdfsf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_arm_unorddf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_arm_unordsf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7emsp/_udivmoddi4.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_aeabi_ldivmod.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_aeabi_uldivmod.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_arm_addsubdf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_arm_addsubsf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_arm_cmpdf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_arm_cmpsf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_arm_fixdfsi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_arm_fixsfsi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_arm_fixunsdfsi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_arm_fixunssfsi.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_arm_floatdidf.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_arm_floatdisf.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_arm_floatundidf.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_arm_floatundisf.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_arm_muldf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_arm_muldivdf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_arm_muldivsf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_arm_mulsf3.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_arm_negdf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_arm_negsf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_arm_truncdfsf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_arm_unorddf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_arm_unordsf2.o
Binary file not shown.
Binary file removed runtime/libgcc-armv7m/_udivmoddi4.o
Binary file not shown.
Binary file removed runtime/libgcc-x86/_divdi3.o
Binary file not shown.
Binary file removed runtime/libgcc-x86/_udivdi3.o
Binary file not shown.
Binary file removed runtime/libgcc-xtensa/_ashldi3.o
Binary file not shown.
Binary file removed runtime/libgcc-xtensa/_ashrdi3.o
Binary file not shown.
Binary file removed runtime/libgcc-xtensa/_cmpdf2.o
Binary file not shown.
Binary file removed runtime/libgcc-xtensa/_cmpsf2.o
Binary file not shown.
Binary file removed runtime/libgcc-xtensa/_modsi3.o
Binary file not shown.
Binary file removed runtime/libgcc-xtensawin/_addsubdf3.o
Binary file not shown.
Binary file removed runtime/libgcc-xtensawin/_ashldi3.o
Binary file not shown.
Binary file removed runtime/libgcc-xtensawin/_ashrdi3.o
Binary file not shown.
Binary file removed runtime/libgcc-xtensawin/_cmpdf2.o
Binary file not shown.
Binary file removed runtime/libgcc-xtensawin/_divdf3.o
Binary file not shown.
Binary file removed runtime/libgcc-xtensawin/_extendsfdf2.o
Binary file not shown.
Binary file removed runtime/libgcc-xtensawin/_fixdfsi.o
Binary file not shown.
Binary file removed runtime/libgcc-xtensawin/_fixunsdfsi.o
Binary file not shown.
Binary file removed runtime/libgcc-xtensawin/_floatsidf.o
Binary file not shown.
Binary file removed runtime/libgcc-xtensawin/_floatunsidf.o
Binary file not shown.
Binary file removed runtime/libgcc-xtensawin/_muldf3.o
Binary file not shown.
Binary file removed runtime/libgcc-xtensawin/_truncdfsf2.o
Binary file not shown.
Binary file removed runtime/libgcc-xtensawin/_udivdi3.o
Binary file not shown.
Binary file removed runtime/libgcc-xtensawin/lib_a-s_fpclassify.o
Binary file not shown.
Binary file removed runtime/libgcc-xtensawin/lib_a-sf_fpclassify.o
Binary file not shown.

0 comments on commit 633387d

Please sign in to comment.