delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/10/11:16:02

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.0.1.1.0.20040310110536.03a22d88@127.0.0.1>
X-Sender:
Date: Wed, 10 Mar 2004 11:13:28 -0500
To: "Liang, James" <jliang AT sandia DOT gov>, "'Cygwin List'" <cygwin AT cygwin DOT com>
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Subject: RE: using shared libraries w/o cygwin
In-Reply-To: <71251C7D5FB1D2119C8F0008C7A44ED1037925F4@es07snlnt.sandia. gov>
References: <71251C7D5FB1D2119C8F0008C7A44ED1037925F4 AT es07snlnt DOT sandia DOT gov>
Mime-Version: 1.0

James,

If you want to build objcopy locally and have it linked against cygwin1.dll,
just compile it with Cygwin's compiler.  Don't use the '-mno-cygwin'
flag.  The 'binutils' package obviously builds 'objcopy' so you can consult 
that package's process if you're having problems with building your custom
version.

Larry


At 10:44 AM 3/10/2004, you wrote:
>My current goal is to run my custom build of objcopy WITH cygwin1.dll
>
>Is there a special compile or link time flag that tells it to link the
>cygwin1.dll instead of
>doing whatever it's doing now that's causing the crashes?
>
>
>> -----Original Message-----
>> From: Larry Hall [mailto:cygwin-lh AT cygwin DOT com]
>> Sent: Tuesday, March 09, 2004 7:59 PM
>> To: Liang, James; 'cygwin AT cygwin DOT com'
>> Subject: Re: using shared libraries w/o cygwin
>> 
>> 
>> At 07:35 PM 3/9/2004, you wrote:
>> >Hi.  I've got a port of objcopy that I'd like to run on 
>> Windows systems.
>> >I'd rather not have to install cygwin on the machine that
>> >I'm going to be running this tool on.
>> >
>> >The problem I'm having is that whenever I run my program on 
>> a file, it
>> >appears to have a STACK_VIOLATION on a call to malloc.  
>> >It works just fine under Linux, under cygwin, and can print the usage
>> >statement and things like that under "DOS", 
>> >but crashes in DOS whenever I actually pass it a data file. 
>> >
>> >So far, the only explanation I can come up with is that 
>> there's some sort of
>> >failure during the dynamic libraries.  Is there any way I can
>> >setup a DOS environment to make it run?  I tried statically 
>> linking in bfd,
>> >but that didn't seem to the problem either.  Could this be caused
>> >by something else?
>> 
>> 
>> The 'objcopy' that comes with the 'binutils' package works fine when 
>> invoked directly from a DOS prompt (outside of a Cygwin 
>> shell).  Of course,
>> that one comes with Cygwin and links to cygwin1.dll.  If you 
>> don't want
>> to have to install Cygwin or manage a local copy of 
>> cygwin1.dll on your
>> target systems, then this isn't an option for you.  However, 
>> if you're 
>> using a custom built version of 'objcopy' that doesn't use 
>> cygwin1.dll, 
>> then the question is really off-topic for this list.  You'll need to 
>> debug the problem yourself. Sorry.
>> 
>> 
>> 
>> --
>> Larry Hall                              http://www.rfk.com
>> RFK Partners, Inc.                      (508) 893-9779 - RFK Office
>> 838 Washington Street                   (508) 893-9889 - FAX
>> Holliston, MA 01746                     
>> 
>> 
>
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Problem reports:       http://cygwin.com/problems.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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