Mail Archives: cygwin-developers/1998/07/06/23:22:54
In message <199807022251 DOT SAA27079 AT subrogation DOT cygnus DOT com>you write:
> The Microsoft Windows linker requires that the n_type field of each
> symbol which represents a function be set to indicate that the symbol
> is a function. This includes undefined symbols used for external
> called functions. The Microsoft documentation indicates that type is
> used to support incremental linking.
>
> The appended patch modifies the cygwin32 toolchain to emit this
> information. This changes gcc to emit .type directives as needed for
> cygwin32. This is based on similar patches to the Irix 5 port to
> declare all external function symbols.
>
> Ian
>
>
> Thu Jul 2 18:47:12 1998 Ian Lance Taylor <ian AT cygnus DOT com>
>
> * i386/cygwin32.h: Add some declaration of external functions.
> (ASM_DECLARE_FUNCTION_NAME): Define.
> (ASM_OUTPUT_EXTERNAL, ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
> (ASM_FILE_END): Define.
> * i386/winnt.c (i386_pe_declare_function_type): New function.
> (struct extern_list, extern_head): Define.
> (i386_pe_record_external_function): New function.
> (i386_pe_asm_file_end): New function.
Thanks. Installed.
jeff
- Raw text -