PATCH: allow PE executables to have an export table

Nick Clifton nickc@redhat.com
Tue Jan 14 11:13:00 GMT 2003


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



More information about the Binutils mailing list