This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: allow PE executables to have an export table


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]