This is the mail archive of the cygwin-developers@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: updated ld [Re: binutils snapshot -- problems?]


>>> On Mon, 10 Jan 2000 17:55:19 -0600 (CST)
>>> Mumit Khan <khan@NanoTech.Wisc.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@jaist.ac.jp>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]