This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
I386_PE_STRIP_ENCODING
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: cygwin-apps <cygwin-apps at cygwin dot com>
- Date: Sat, 15 Dec 2001 15:21:27 +1100 (EST)
- Subject: I386_PE_STRIP_ENCODING
Hi
Recent patch to GCC fixes one problem with asm specified names and
dllexport. However, using asm specified names with dllimport will still
create assembler error. Is the following testcase (which fails now, because
names like @i.__imp__*foo, don't get stripped properly) realistic? I have
a patch that will fix, but affects code in both i386_pe_mark_dllimport in
winnt.c (don't add __imp_ yet) and cygwin.h (do it in ASM_OUTPUT_LABELREF).
But first, does failure of the following testcase represent anything to
worry about?
Danny
/* Modified from gcc.dg/asm-fs-1.c
Origin: <hp@bitrange.com>
Make sure we do not get spurious '*' characters in section names or
elsewhere, with asm-specified names.
Special test for targets supporting dllimport
*/
/* { dg-do compile } */
/* { dg-options "-ffunction-sections -fdata-sections" } */
extern int __attribute__((dllimport)) foobar asm ("_baz");
int foo(void) asm ("_bar");
int foo(void) {return foobar;}
/* { dg-final { scan-assembler-not "\\*_bar" } } */
/* { dg-final { scan-assembler-not "\\*_baz" } } */
http://greetings.yahoo.com.au - Yahoo! Greetings
- Send your festive greetings online!