Next release/allow PE executables to have an export table

Nick Clifton nickc@redhat.com
Sun May 11 08:36:00 GMT 2003


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ld-cygwin.tar.zip
Type: application/zip
Size: 2325 bytes
Desc: reworked exe-export test
URL: <https://sourceware.org/pipermail/binutils/attachments/20030511/2c82d557/attachment.zip>


More information about the Binutils mailing list