From: ian AT cygnus DOT com (Ian Lance Taylor) Subject: Re: ld bug 1 Jun 1998 14:48:56 -0700 Message-ID: <199806012122.RAA03064.cygnus.cygwin32.developers@subrogation.cygnus.com> References: <01BD81EB DOT 237E9D80 AT sos> To: sos AT buggy DOT prospect DOT com DOT ru Cc: cygwin32-developers AT cygnus DOT com From: Sergey Okhapkin Date: Sun, 17 May 1998 23:25:53 +0400 If input objects contains a section not defined in a linker's script, ld produces "invalid Windows NT image" because this section is not aligned on a page boundary. Try to compile: int __attribute__((section("mysection"))) i; main(){} If anybody is interested, the place to fix this is gld_${EMULATION_NAME}_place_orphan in ld/emultempl/pe.em. Ian