This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


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

Re: pei symbols


   Date: Tue, 2 Jun 1998 20:15:08 -0400
   From: Christopher Faylor <cgf@cygnus.com>

   >   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