[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] arm link fails
From: |
tike64 |
Subject: |
Re: [Tinycc-devel] arm link fails |
Date: |
Thu, 7 Dec 2006 00:28:17 -0800 (PST) |
Rob Landley <address@hidden> wrote:
> (Also, I never did get the patch you're using to build arm natively.
> Hard to reproduce your problem without that. :)
Not sure what patch you are talking about. I downloaded a tarball from
tcc web pages and hacked it a little to get it building. These are my
changes:
diff -rudw tinycc/bcheck.c tcc-0.9.23/bcheck.c
--- tinycc/bcheck.c 2004-11-07 17:43:33.000000000 +0200
+++ tcc-0.9.23/bcheck.c 2006-12-01 15:15:36.000000000 +0200
@@ -32,7 +32,7 @@
//#define BOUND_STATIC
/* use malloc hooks. Currently the code cannot be reliable if no hooks
*/
-#define CONFIG_TCC_MALLOC_HOOKS
+// #define CONFIG_TCC_MALLOC_HOOKS
#define HAVE_MEMALIGN
diff -rudw tinycc/Makefile tcc-0.9.23/Makefile
--- tinycc/Makefile 2006-10-28 22:50:24.000000000 +0300
+++ tcc-0.9.23/Makefile 2006-12-05 12:34:47.000000000 +0200
@@ -3,20 +3,22 @@
#
include config.mak
-CFLAGS+=-g -Wall
+CFLAGS=-O0 -g -Wall
ifndef CONFIG_WIN32
-LIBS=-ldl
+LIBS=-ldl -lm
BCHECK_O=bcheck.o
endif
CFLAGS_P=$(CFLAGS) -pg -static -DCONFIG_TCC_STATIC
LIBS_P=
+ifeq ($(ARCH),i386)
CFLAGS+=-mpreferred-stack-boundary=2
ifeq ($(GCC_MAJOR),2)
CFLAGS+=-m386 -malign-functions=0
else
CFLAGS+=-march=i386 -falign-functions=0 -fno-strict-aliasing
endif
+endif
DISAS=objdump -d
INSTALL=install
Note, that that last problem doesn't depend on native compiler. It is
reproducible with cross compiler too.
--
tike
____________________________________________________________________________________
Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index