[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/14156] --sort-section=alignment trashes init/fini sections, and
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/14156] --sort-section=alignment trashes init/fini sections, and anything similar |
Date: |
Wed, 27 Jun 2012 17:35:31 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=14156
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2012-06-27 17:35:31
UTC ---
(In reply to comment #0)
>
> I'm not sure what the right fix for this is, but I think the linker scripts
> should do something to ensure that sections which are pieced-together in a
> particular link order (init/fini and probably also ctors/dtors, and perhaps
> others) never get reordered. If that's not possible, then this option should
> be
> documented as dangerous/broken so that projects don't put it in their
> makefiles.
ctors/dtors sections contain pointers. The behavor of their order is
undefined.
--
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.