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: Next release/allow PE executables to have an export table


Hi Fabrizio,

  Thanks for submitting this test case.  Unfortunately there are
  several problems with it:

  * It allows the *-*-mingw target, but does not actually run any
    tests for this target.

  * It uses the system version of dlltool, rather than the one in the
    binutils toolchain being tested.

  * It disables linking with the normal libraries, and yet the test
    program calls library functions like printf().

  I am attaching a tweaked version of your test case as an example of
  how you might want to rewrite it.  Unfortunately this version still
  does not work because when the executable is linked, this error
  message is generated:

    tmpdir/testexe.o(.text+0x1c): In function `main':
    /sources/FSF/ld/testsuite/ld-cygwin/testexe.c:13: undefined reference to `__alloca'
    tmpdir/testexe.o(.text+0x21):/sources/FSF/ld/testsuite/ld-cygwin/testexe.c:13: undefined reference to `___main'

  I think that you might want to consider linking with the normal
  startup version of crt0.o to get around this problem, but it is not
  easy for me to test this.

Cheers
        Nick

Attachment: ld-cygwin.tar.zip
Description: reworked exe-export test


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