History

configure chmod 755 etc.

lib/tcov.c: - can't be cross-compiled (needs stdio.h) - can be included in libtcc1.a Reason why bt-xxx.o/bcheck.o are linked separatly is because we don't want then to linked into exe's and dlls at the same time.

grischka committed 5 years ago

Commit 557b4a11 parent 25628cf10 files · +21 −15Browse files

Showing the changes to lib (3 of 10 files). Show all

Unified · Split

3 files
  1. lib/Makefile +1 −1
  2. lib/bcheck.c +4 −0
  3. lib/bt-exe.c +0 −5
lib/Makefile+1−1
@@ -38,6 +38,7 @@ endif · 37 unmodified lines
3838 $(X)BT_O = bt-exe.o bt-log.o
3939 $(X)B_O = $(BCHECK_O) bt-exe.o bt-log.o bt-dll.o
4040 endif
41+$(X)BT_O += tcov.o
4142
4243 DSO_O = dsohandle.o
4344
@@ -64,7 +65,6 @@ OBJ-arm-wince = $(ARM_O) $(WIN_O) · 20 unmodified lines
6465 OBJ-riscv64 = $(RISCV64_O) $(BCHECK_O) $(DSO_O)
6566
6667 OBJ-extra = $(filter $(B_O),$(OBJ-$T))
67−OBJ-extra += tcov.o
6868 OBJ-libtcc1 = $(addprefix $(X),$(filter-out $(OBJ-extra),$(OBJ-$T)))
6969
7070 ALL = $(addprefix $(TOP)/,$(X)libtcc1.a $(OBJ-extra))
lib/bcheck.c+4−0
@@ -1367,6 +1367,10 @@ int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact) · 1366 unmodified lines
13671367
13681368 dprintf (stderr, "%s, %s() %d %p %p\n", __FILE__, __FUNCTION__,
13691369 signum, act, oldact);
1370+
1371+ if (sigaction_redir == NULL)
1372+ __bound_init(0,-1);
1373+
13701374 if (act) {
13711375 nact = *act;
13721376 if (nact.sa_flags & SA_SIGINFO)
lib/bt-exe.c+0−5
@@ -18,11 +18,6 @@ void __bt_init(rt_context *p, int num_callers) · 17 unmodified lines
1818 __attribute__((weak)) void __bound_init(void*, int);
1919 struct rt_context *rc = &g_rtctxt;
2020 //fprintf(stderr, "__bt_init %d %p %p\n", num_callers, p->stab_sym, p->bounds_start), fflush(stderr);
21−#ifdef __APPLE__
22− /* call __bound_init here due to redirection of sigaction */
23− if (__bound_init && p->bounds_start)
24− __bound_init(p->bounds_start, 0);
25−#endif
2621 if (num_callers) {
2722 memcpy(rc, p, offsetof(rt_context, next));
2823 rc->num_callers = num_callers - 1;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t