This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: allow PE executables to have an export table
- From: Nick Clifton <nickc at redhat dot com>
- To: dannysmith at users dot sourceforge dot net
- Cc: cwilson at ece dot gatech dot edu, binutils at sources dot redhat dot com, hartmut dot birr at tesionmail dot de
- Date: 14 Jan 2003 11:14:04 +0000
- Subject: Re: PATCH: allow PE executables to have an export table
- References: <3E157D03.6020401@ece.gatech.edu><001701c2b95c$435e0480$8498a7cb@DANNY>
Hi Danny,
> This patch breaks generation of relocateable output files
> (using -r switch), throwing error in pe-dll.c (generate_reloc)
>
> Here is a testcase:
>
> /* foo.c */
> __declspec(dllexport) int foo() {return 1;}
>
> /* bar.c */
> __declspec(dllexport) int bar() {return 1;}
>
> gcc -c foo.c
> gcc -c bar.c
> ld -o foobar.o -r foo.o bar.o
>
> DJ: zero vma section reloc detected: `.text' #0 f=563
> DJ: zero vma section reloc detected: `.text' #0 f=563
Hmm, I tried this today and did not have any problems. Which version
of gcc are you using ?
Cheers
Nick