Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Henderson <richard@atheist.tamu.edu>
Subject: Re: strip and that kernel patch nonsense
Date: Mon, 20 May 1996 02:41:01 -0500 (CDT)	[thread overview]
Message-ID: <m0uLPaQ-0001ukC@atheist.tamu.edu> (raw)
In-Reply-To: <9605200723.AA23467@nova.tat.physik.uni-tuebingen.de>

> if it's true that ld has to be fixed, this would mean that all old
> binaries are "broken" in some way and may suffer this probem ?
> I can test the new ld only tomorrow...

Yes, old binaries *may* be broken.  It depends on the specifics
of their section sizes and how they got aligned.  

To be frank, between the two bugs brought to light with your strip
report, I'm surprised anything worked before at all.

> but why is it possible to use "quickstrip" on the "broken" programs with
> no problem? does quickstrip fix the real problem which was caused by ld ?

As Jim Pardis explained, quickstrip simply truncates the file and
twiddles some bits.  Strip, on the other hand, is actually objcopy
with a few defaults.  It performs a complete translation of the 
input file to the output file with a filter in between.

In the time-before-last problem (one liner with _PDATA), the linker
did not have the right flags for the segment so it did not align
it properly.  When strip read the section, it got the flags set
properly, but when it went to write the section back out again,
the changed now-correct flags caused the alignment to change.  This
alignment change breaks programs.

I hope this is somewhat clear.

r~

  reply	other threads:[~1996-05-20  7:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m0uLBiU-0001ukC@atheist.tamu.edu>
1996-05-20  7:11 ` strip and that kernel patch nonsense Harald Koenig
1996-05-20  7:11 ` Harald Koenig
1996-05-20  7:41   ` Richard Henderson [this message]
     [not found] <Pine.LNX.3.91.960520084514.15762E-100000@linux.cs.Helsinki.FI>
1996-06-06  0:51 ` Erik Troan
1996-05-20  7:18 David Mosberger-Tang
  -- strict thread matches above, loose matches on Subject: below --
1996-05-15 17:54 Richard Henderson
1996-05-17 16:37 ` Harald Koenig
1996-05-18  4:22   ` Richard Henderson
1996-05-18  9:01     ` Harald Koenig
1996-05-20  6:13       ` Jim Paradis
1996-05-20  5:48         ` Linus Torvalds
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox