tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] [TIPS] empty test program will crash if compiled with


From: Thomas Preud'homme
Subject: Re: [Tinycc-devel] [TIPS] empty test program will crash if compiled with -b option
Date: Sat, 11 Apr 2015 16:44:31 +0800
User-agent: KMail/4.14.1 (Linux/3.16.0-4-amd64; KDE/4.14.2; x86_64; ; )

Le mercredi 25 mars 2015, 19:55:46 Sergey Korshunoff a écrit :
> Hi! Is there a way to add a file from a library like:
>    tcc_add_support(s1, "libtcc1.a(bcheck.o)");
> 
> There was a code in the old tccelf.c (0.9.22) which then removed:
>         snprintf(buf, sizeof(buf), "%s/%s", tcc_lib_path, "bcheck.o");
>         tcc_add_file(s1, buf);
> 
> Currently we install only a libtcc1.a. There is no bcheck.o
> Question: how to force a bcheck.o linking?

bcheck.o is part of libtcc1.a. See lib/Makefile:

BCHECK_O = bcheck.o
(…)
I386_O = libtcc1.o alloca86.o alloca86-bt.o $(BCHECK_O)
X86_64_O = libtcc1.o alloca86_64.o alloca86_64-bt.o $(BCHECK_O)
(…)
ifeq "$(TARGET)" "i386"
 OBJ = $(addprefix $(DIR)/,$(I386_O))
(…)
ifeq "$(TARGET)" "x86_64"
 OBJ = $(addprefix $(DIR)/,$(X86_64_O))
(…)
$(DIR)/libtcc1.a ../libtcc1.a : $(OBJ) $(XAR)
        $(XAR) rcs $@ $(OBJ)

Best regards,

Thomas

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]