From d7a7c3769d0a1dcb8400258cd8adf78a8566de61 Mon Sep 17 00:00:00 2001 From: mob Date: Sun, 26 Feb 2012 19:02:51 -0600 Subject: Multiple fixes for 64 bit sections This changeset attempts to fix a few problems when giving using the high 32bits of a 64bit section offset. There are likely more issues (or perhaps regressions) lurking in the muck here. In general, this moves a few data type declarations to use uplong. Also, add support for 64bit mingw32 building under cygwin. Because native types are used for 64 bit offsets, this won't fix challenges with cross compiling from 32bit -> 64bit. Tested under cygwin, against binary compiled with -Wl,-Ttext=0xffffff8000000000 Signed-off-by: Andrew Mulbrook --- Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ab9a698..fb2f721 100644 --- a/Makefile +++ b/Makefile @@ -318,9 +318,12 @@ install: $(PROGS) $(TCCLIBS) $(TCCDOCS) ifdef CONFIG_CROSS mkdir -p "$(tccdir)/lib/32" mkdir -p "$(tccdir)/lib/64" +ifeq ($(ARCH),x86-64) -$(INSTALL) -m644 lib/i386-win32/libtcc1.a "$(tccdir)/lib/32" +else -$(INSTALL) -m644 lib/x86_64-win32/libtcc1.a "$(tccdir)/lib/64" endif +endif uninstall: rm -rfv "$(tccdir)/*" -- cgit v1.3.1