[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/15891] ia64, ld segfault on --as-needed
From: |
amodra at gmail dot com |
Subject: |
[Bug ld/15891] ia64, ld segfault on --as-needed |
Date: |
Tue, 23 Jan 2018 10:04:51 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=15891
--- Comment #4 from Alan Modra <amodra at gmail dot com> ---
Apparently the set of people who care about ia64 and the set of people who know
enough to fix this bug are disjoint. So ia64 has never had a working
--as-needed. --as-needed was implemented originally in 2004 and working for
most targets around 2006.
As noted by the original reporter, the problem is that
elfNN_ia64_link_hash_entry carries on-the-side data, elfNN_ia64_dyn_sym_info.
This on-the-side data can be free'd or modified when adding symbols. So enough
state would need to be kept about the original elfNN_ia64_dyn_sym_info for it
to be restored. The hook to do these tricks is
elf_backend_data.notice_as_needed which will need implementing in the ia64
backend if 2.29 --as-needed is to be fixed. Alternatively, rewrite the generic
--as-needed support to check whether a library is needed without modifying
symbol state..
The good news is that this problem should disappear with 2.30, since
check_relocs (which is where the on-the-side data is created) runs after
symbols have been resolved.
--
You are receiving this mail because:
You are on the CC list for the bug.