delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/09/05/05:34:10

From: cgf AT cygnus DOT com (Christopher G. Faylor)
Subject: Re: B19: gcc -r option broken?
5 Sep 1998 05:34:10 GMT :
Message-ID: <6sqigi$f7f$1@cronkite.cygnus.com>
References: <001801bdd6af$98802e00$0501010a DOT cygnus DOT gnu-win32 AT flownode DOT ahpah DOT com>
X-Newsreader: trn 4.0-test63 (15 March 1998)

In article <001801bdd6af$98802e00$0501010a DOT cygnus DOT gnu-win32 AT flownode DOT ahpah DOT com>,
Greg Humphreys <greg AT ahpah DOT com> wrote:
>I'm trying to use the -r option for gcc to generate an executable
>with relocation information in it.  It appears to be broken.
>
>When I run the resulting .exe, I get "This program cannot be run in
>DOS mode".  Every PE viewer I have dies a miserable flaming death on
>the resulting .exe (I've tried three of them, including one I wrote
>myself).
>
>It looks to me that the section headers are messed up (they have very
>large values for the section sizes), which makes the file impossible
>to parse (this is my initial assessment after looking at my own
>PE parser in a debugger).  The fact that the stub program is being 
>run by Windows is even more confusing.
>
>I really need to be able to include relocation information in my
>executables, and I'd like to continue to use gcc.
>
>I'm running Windows 98.  
>
>Any help on this matter would be greatly appreciated.

Sorry.  Your analysis is correct.  This is broken.
Patches to fix this problem would be welcome.
-- 
cgf AT cygnus DOT com             "Everything has a boolean value, if you stand
http://www.cygnus.com/      far enough away from it."  -- Galena Alyson Canada

- Raw text -


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