https://sourceware.org/bugzilla/show_bug.cgi?id=12968

Cary Coutant <ccoutant at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ccoutant at gmail dot com
           Assignee|ian at airs dot com                |ccoutant at gmail dot 
com

--- Comment #19 from Cary Coutant <ccoutant at gmail dot com> ---
I have a feeling that this may be due to a bug in the way gold reverses the
contents of the .ctors sections as it moves them to .init_array. In
do_relocate(), we reverse the individual words of a .ctors section, but we do
not reverse the corresponding dynamic relocations. If every entry in a .ctors
section produces a RELATIVE relocation, it doesn't matter, but if, for some
reason, there's a different kind of relocation (or no relocation) on one or
more entries, this could cause a runtime crash as an entry that should have had
a RELATIVE relocation applied doesn't get relocated, or vice versa.

Now that GCC has been putting ctors in .init_array for quite a while now, this
bug is probably obsolete, but still ought to be fixed just because it has the
potential for causing a crash.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to