Skip to content

Commit 92a3b35

Browse files
pcercueiQuzarDC
authored andcommitted
dc-chain: Remove fake KOS objects from libgcc after build
This should not be necessary and I don't understand why we need this; the symbols inside fake-kos.o are all weak, and should all be replaced by symbols provided by libkallisti.a. Alas, this does not seem to work reliably, and cause crashes and issues that are hard to debug. Address these issues by just dropping the fake-kos.o object from the libgcc.a archive. Signed-off-by: Paul Cercueil <paul@crapouillou.net>
1 parent 09aed29 commit 92a3b35

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

utils/dc-chain/scripts/gcc-pass2.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ ifdef enable_ada
3232
endif
3333
endif
3434
$(MAKE) -C $(build) $(install_mode) DESTDIR=$(DESTDIR) $(to_log)
35+
$(target)-gcc-ar d $(shell $(target)-gcc -print-file-name=libgcc.a) fake-kos.o
3536
$(clean_up)

0 commit comments

Comments
 (0)