[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/16417] executable linked with gold segfaults before main
From: |
ccoutant at google dot com |
Subject: |
[Bug gold/16417] executable linked with gold segfaults before main |
Date: |
Thu, 03 Apr 2014 17:01:35 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=16417
Cary Coutant <ccoutant at google dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WONTFIX
--- Comment #7 from Cary Coutant <ccoutant at google dot com> ---
The ld documentation says:
--as-needed
--no-as-needed
This option affects ELF DT_NEEDED tags for dynamic libraries
mentioned on the command line after the --as-needed option.
Normally the linker will add a DT_NEEDED tag for each dynamic
library mentioned on the command line, regardless of whether
the library is actually needed or not. --as-needed causes a
DT_NEEDED tag to only be emitted for a library that at that
point in the link satisfies a non-weak undefined symbol
reference from a regular object file or, if the library is not
found in the DT_NEEDED lists of other libraries, a non-weak
undefined symbol reference from another dynamic library.
Object files or libraries appearing on the command line after
the library in question do not affect whether the library is
seen as needed. This is similar to the rules for extraction of
object files from archives. --no-as-needed restores the
default behaviour.
Note where it says *non-weak*. It seems to me that gold is doing the right
thing here and BFD ld is not.
--
You are receiving this mail because:
You are on the CC list for the bug.