This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: binutils / x86_64 / mingw32
- From: Kai Tietz <Kai dot Tietz at onevision dot com>
- To: binutils at sourceware dot org
- Cc: NightStrike <nightstrike at gmail dot com>
- Date: Fri, 29 Dec 2006 16:57:01 +0100
- Subject: Re: binutils / x86_64 / mingw32
Hi NightStrike,
Yes, you are right. pe-dll.c was altered without adjusting pep-dll.c and
pep-dll.h! The following patch solves this problem.
Sorry for, that I didn't recognized it earlier ;(
Regards,
i.A. Kai Tietz
diff -b -u -r1.1 pep-dll.c
--- pep-dll.c 20 Sep 2006 11:35:09 -0000 1.1
+++ pep-dll.c 29 Dec 2006 15:52:31 -0000
@@ -50,6 +50,7 @@
#define pe_dll_generate_implib pep_dll_generate_implib
#define pe_dll_add_excludes pep_dll_add_excludes
#define pe_walk_relocs_of_symbol pep_walk_relocs_of_symbol
+#define pe_bfd_is_dll pep_bfd_is_dll
/* Uses x86_64 PE+. */
#define pe_use_x86_64
diff -b -u -r1.1 pep-dll.h
--- pep-dll.h 20 Sep 2006 11:35:09 -0000 1.1
+++ pep-dll.h 29 Dec 2006 15:55:58 -0000
@@ -49,5 +49,6 @@
extern void pep_walk_relocs_of_symbol
(struct bfd_link_info *, const char *, int (*) (arelent *, asection
*));
extern void pep_create_import_fixup (arelent * rel, asection *, int);
+extern bfd_boolean pep_bfd_is_dll(bfd *abfd);
#endif /* PEP_DLL_H */
----------------------------------------
Kai Tietz - Software engineering
OneVision Software Entwicklungs GmbH & Co KG
Dr.-Leo-Ritter-Str. 9, 93049 Regensburg, Germany
Phone: +49-941-78004-0
FAX: +49-941-78004-489
WWW: http://www.OneVision.com
NightStrike <nightstrike@gmail.com>
29.12.2006 14:42
To
Kai.Tietz@onevision.com
cc
Subject
binutils / x86_64 / mingw32
Kai,
I was wondering if you could help me in building a cross compiler for
x86_64. My machine is i686-pc-cygwin, and I'm trying to build a
compiler that will produce x86_64-pc-mingw32 binaries. Using all 5 of
your patches from here:
http://www.nabble.com/Renaming-mingw64-to-mingw*-for-x86_64-architecure-tf2845722.html
... and using the latest nightly snapshot or cvs version, I do the
following:
./configure --prefix=/opt/testing --target=x86_64-pc-mingw32 && make
The result is this:
In file included from pep-dll.c:57:
pe-dll.c:2836: warning: no previous prototype for 'pe_bfd_is_dll'
make[4]: *** [pep-dll.o] Error 1
Any ideas on what could be done? I have verified that the following
works (in a separate directory):
./configure --prefix=/opt/test && make && make install
No issues. It's only when I use your patches and change the target
type. What do you think?