[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/4538] static initialization ignored in static archive (.a)
From: |
drow at false dot org |
Subject: |
[Bug ld/4538] static initialization ignored in static archive (.a) |
Date: |
23 May 2007 11:20:52 -0000 |
------- Additional Comments From drow at false dot org 2007-05-23 12:20 -------
Subject: Re: static initialization ignored in static archive
(.a)
On Wed, May 23, 2007 at 07:20:04AM -0000, ejt at andrew dot cmu dot edu wrote:
> Correct me if I'm wrong, but the archive format is intended to speed up
> linking and simplify
> distribution, *not change the behavior of code which results*. If the linker
> can strip/leave out unused
> code from an archive, that's a nice optimization, but if this causes a change
> in runtime results, then
> obviously that code wasn't unused after all, and was incorrect to leave it
> out!
You are incorrect. The standard does not cover archive libraries, and
so the definition of "container" you're assuming has no basis in the
standard.
I'm positive there are people relying on the current behavior.
Changing it would be a bad idea.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4538
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug ld/4538] New: static initialization ignored in static archive (.a), ejt at andrew dot cmu dot edu, 2007/05/22
- [Bug ld/4538] static initialization ignored in static archive (.a), amodra at bigpond dot net dot au, 2007/05/22
- [Bug ld/4538] static initialization ignored in static archive (.a), ejt at andrew dot cmu dot edu, 2007/05/23
- [Bug ld/4538] static initialization ignored in static archive (.a), amodra at bigpond dot net dot au, 2007/05/23
- [Bug ld/4538] static initialization ignored in static archive (.a), ejt at andrew dot cmu dot edu, 2007/05/23
- [Bug ld/4538] static initialization ignored in static archive (.a),
drow at false dot org <=
- [Bug ld/4538] static initialization ignored in static archive (.a), ejt at andrew dot cmu dot edu, 2007/05/23