delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/20/11:11:27

Message-Id: <200109201511.LAA11645@delorie.com>
Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Mark Paulus" <commpg AT yahoo DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Thu, 20 Sep 2001 09:11:35 -0600
Reply-To: "Mark Paulus" <commpg AT yahoo DOT com>
X-Mailer: PMMail 2000 Professional (2.20.2350) For Windows 2000 (5.0.2195;2)
In-Reply-To: <3ba9edff.2282.0@worldonline.dk>
MIME-Version: 1.0
Subject: Re: Follow up: Problems with ld

Hmmm.  running 'ld --help' spews out a whole bunch of 
stuff on my terminal, and one of the options I see is 
--demangle.  So, adding the option ' -Wl,--demangle' would
pass that through from gcc/g++ on down to ld.

What I don't know is if --demangle will give you the functionallity
you are desiring.


On Thu, 20 Sep 2001 13:24:15 GMT, Sune Foldager wrote:

>Ok here is a follow-up on my own mail ;)
>
>It's turns out that the LD in cygwin is less resistent to weird comman line
>options. It wants -oformat=binary or --oformat binary. Not -oformat binary.
>The Linux ld doesn't care. However, here is my extended problem:
>
>Back when I compilled the kernel under DOS using djgpp, the compiller mangled
>the names as usual, so a prototype of:
>void disable();
>Would make the linker expect '_disable' to be defined somewhere. When migrating
>to Linux, I had to change all my assembler files since the Linux gcc _didn't_
>mangle the name, and the linker will look for 'disable' instead. The extended
>problem then is, that cygwin behaves like djgpp, ie. mangles the names. So
>far I have not been able to find anywhere in djgpp, gcc on either Linux or
>cygwin, to change the name mangling behavior. Nor is the behaviour documented
>anywhere it seems. Anyone can help? :)
>
>Kind regards,
>Sune Foldager.
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019