From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Lance Taylor To: cgf@cygnus.com Cc: jeffdb@goodnet.com, bfd@cygnus.com, cygwin32-developers@cygnus.com, gas2@cygnus.com Subject: Re: pei symbols Date: Tue, 02 Jun 1998 19:39:00 -0000 Message-id: <199806030239.WAA12715@subrogation.cygnus.com> References: <199806030015.UAA09292@kramden.cygnus.com> X-SW-Source: 1998/msg00190.html Date: Tue, 2 Jun 1998 20:15:08 -0400 From: Christopher Faylor > Pei function symbols need to have a 20 in > > internal_syment->n_type > > similar to ecoff, anyone know how to get gcc to > generate the appropriate .def/.endef? > >This patch seems to do it in gcc. I might try to clean it up and get >it into egcs. What does adding this do? It sets the n_type field of all function symbols to DT_FCN << N_BTSHFT (e.g., 0x20). The Microsoft PE documentation says that this is required for all function symbols, for some reason involving incremental linking. I doubt it matters for cygwin32. It's just a minor cleanup of the Win32 toolchain. Ian