public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Andreas Jellinghaus (bei rf)" <jelling@iitb.fhg.de>
To: gnu-win32@cygnus.com
Subject: dll building : segmentation faults
Date: Wed, 06 Aug 1997 09:13:00 -0000	[thread overview]
Message-ID: <19970806130447.28713@bsilx1.iitb.fhg.de> (raw)

gcc    -c dllentry.c -o dllentry.o
ld -s --base-file my_dll.base --entry _dll_entry@12 \
        --dll --output my_dll.jnk dllentry.o 
dlltool --base-file my_dll.base --def my_dll.def --dllname my_dll.dll \
        --output-exp my_dll.exp --output-lib my_dll.a 
ld -s --dll --entry _dll_entry@12 --output my_dll.dll my_dll.exp  dllentry.o 

working dllentry.c :
#include <windows.h>
asm(".section .idata$3\n" ".long 0,0,0,0,0,0,0,0");
WINAPI dll_entry(int a,int b,int c) { return 1; }
char* dummy() { return ""; }

not working dllentry.c :
#include <windows.h>
asm(".section .idata$3\n" ".long 0,0,0,0,0,0,0,0");
WINAPI dll_entry(int a,int b,int c) { return 1; }
void dummy() { return ; }

(also not working int dummy, int* dummy, ...).  any hints ? i'm using gnu win
32, beta 18 (i tried this on winnt and linux with the same result).

andreas

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

             reply	other threads:[~1997-08-06  9:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-08-06  9:13 Andreas Jellinghaus (bei rf) [this message]
     [not found] ` <jelling@iitb.fhg.de>
1997-08-07  9:45   ` Philippe GIACINTI

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19970806130447.28713@bsilx1.iitb.fhg.de \
    --to=jelling@iitb.fhg.de \
    --cc=gnu-win32@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).