bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/15025] --enable-initfini-array creates .init_array where no inpu


From: amodra at gmail dot com
Subject: [Bug ld/15025] --enable-initfini-array creates .init_array where no input has one
Date: Sat, 19 Jan 2013 00:17:24 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=15025

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amodra at gmail dot com

--- Comment #5 from Alan Modra <amodra at gmail dot com> 2013-01-19 00:17:24 
UTC ---
So it's the 0 terminators from sofini.c that break things when a new linker
puts them into .init_array/.fini_array?  Just curious, I'd like to be sure I
understand what is going on here.  See
http://sourceware.org/ml/binutils/2011-01/msg00159.html

In regard to "minus crtfiles??!!!", this is exactly why those files do not have
their .ctor/.dtor sections placed into .init_array/.fini_array.  .init_array
and .fini_array don't use sentinels and obviously you don't want to try to
execute a function at 0 or -1.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

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