delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/01/10/20:24:42

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
To: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: updated ld [Re: binutils snapshot -- problems?]
References: <Pine DOT HPP DOT 3 DOT 96 DOT 1000110174005 DOT 22291F-100000 AT hp2 DOT xraylith DOT wisc DOT edu>
Mime-Version: 1.0 (generated by tm-edit 7.106)
From: Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
Date: 11 Jan 2000 10:27:04 +0900
In-Reply-To: Mumit Khan's message of Mon, 10 Jan 2000 17:55:19 -0600 (CST)
Message-ID: <s1s901xcs9j.fsf@jaist.ac.jp>
Lines: 44
X-Mailer: Gnus v5.3/Emacs 19.34

>>> On Mon, 10 Jan 2000 17:55:19 -0600 (CST)
>>> Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU> said:

> I've uploaded a new binutils snapshot, and this one is pretty close
> what I've been using for a while locally. Please try it out and let
> me. Both Cygwin B20.1 binaries and sources are there.

This works fine. Here is the output of `objdump -h' for the
stripped new-cygwin1.dll. The output for the unstripped one is
the same.

new-cygwin1.dll:     file format pei-i386

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00071000  61001000  61001000  00000400  2**2
                  CONTENTS, ALLOC, LOAD, CODE
  1 .data         00007200  61072000  61072000  00071400  2**2
                  CONTENTS, ALLOC, LOAD, DATA
  2 .bss          00005be4  6107a000  6107a000  00000000  2**2
                  ALLOC
  3 .edata        00004e00  61080000  61080000  00078600  2**2
                  CONTENTS, ALLOC, LOAD, DATA
  4 .idata        00001a00  61085000  61085000  0007d400  2**2
                  CONTENTS, ALLOC, LOAD, DATA
  5 .reloc        00006000  61087000  61087000  0007ee00  2**2
                  CONTENTS, ALLOC, LOAD, DATA, SHARED
  6 .rsrc         00000600  6108d000  6108d000  00084e00  2**2
                  CONTENTS, ALLOC, LOAD, DATA, SHARED

The reason why the stripped binary couldn't work on NT4 Sp5 and
W2K RC2 seems that `strip' over-stripped the .reloc section.
John R. Hanson pointed out this to me by a private e-mail yesterday.
I, however, didn't think the reason was so simple.

> I just rebuilt everything from scratch, built the latest cygwin snapshot
> on an NT 4.0 SP3 machine, stripped the DLL, and it still runs. And thanks
> to making me skip lunch, now I'm starving and getting really cranky ;-)

I'm very sorry. Thank for your effort.
____
  | AIST      Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology

- Raw text -


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