bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/12968] gold generates broken binaries on FreeBSD 8.2


From: ccoutant at gmail dot com
Subject: [Bug gold/12968] gold generates broken binaries on FreeBSD 8.2
Date: Sun, 27 Mar 2016 17:49:02 +0000

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.


reply via email to

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