[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Beginner issue when linking 7z LZMA SDK to dietlibc
From: |
Christian Jullien |
Subject: |
Re: [Tinycc-devel] Beginner issue when linking 7z LZMA SDK to dietlibc |
Date: |
Thu, 20 Jan 2022 06:43:59 +0100 |
Hi are you using mob?
Tcc uses 0.9.27 for almost 4 years now, only mob is supported.
C
-----Original Message-----
From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=orange.fr@nongnu.org]
On Behalf Of Sandro
Sent: Thursday, January 20, 2022 03:21
To: tinycc-devel@nongnu.org
Subject: [Tinycc-devel] Beginner issue when linking 7z LZMA SDK to dietlibc
Hello Everyone
I'm using tcc on sabotage. I use below to link LZMA to dietlibc (the
start.o and libc.a from dietlibc are in current path):
tcc -nostdlib start.o LzmaUtil.o Alloc.o LzFind.o LzmaEnc.o LzmaDec.o
7zFind.o 7zStream.o -L. -lc
Linking succeeds without any error but always segfault when run the a.out.
If I use ld from binutils, a.out can run without any problems.
If adding linker flag -static, there will be the same situation.
Anyone could advise on how to fix this? Thank you very much!
Versions:
tcc-0.9.27.tar.bz2
dietlibc-0.34.tar.xz
lzma1900.7z
sabotage-1.1.24-x86_64-desktop-1f74666.img.xz
Best regards
Sandro Yang
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel