bug-binutils
[Top][All Lists]
Advanced

[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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]