Bug 1133960
| Summary: | ld.bfd chokes on -flto use by systemd | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Kyle McMartin <kmcmartin> |
| Component: | binutils | Assignee: | Kyle McMartin <kmcmartin> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | dan, jakub, nickc, peterm |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | binutils-2.24-23.fc22 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-08-27 13:38:08 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Kyle McMartin
2014-08-26 14:30:20 UTC
This is fixed in binutils HEAD... I bisected the fix to 46135103, but it seems a little... unusual for 2.24 branch, so I'm unsure how to proceed. Going to spend the day trying to see if I can simplify the diff to fix this case without all the extra code. From 4613510308cea27713e8c7424b2afee9b99f6226 Mon Sep 17 00:00:00 2001 From: Alan Modra <amodra> Date: Tue, 12 Aug 2014 10:43:33 +0930 Subject: [PATCH 1/1] Change ld "notice" interface for better handling of indirect symbols The main aim of this change was to have non_ir_ref set correctly on new indirect symbols. I could have added a "copy" param to the "notice" function, so that indirect symbols could be created in plugin_notice, but it seemed cleaner to create indirect syms earlier and pass them rather than "string" to "notice". include/ * bfdlink.h (struct bfd_link_callbacks <notice>): Remove "string" param, add "inh". bfd/ * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Only call "notice" here when not calling the generic add_symbol function. Formatting. Correct handling of indirect symbols. Update notice call. * elflink.c (_bfd_elf_notice_as_needed): Update notice call. * linker.c (_bfd_generic_link_add_one_symbol): Create indirect symbols early. Update notice call. Add comments regarding weak symbols vs. indirect. ld/ * ldmain.c (notice): Update args. * plugin.c (plugin_notice): Likewise. Follow warning sym link. Handle new indirect symbol. I've shoved this into 2.24-23.fc22 & corresponding f21 version so we can rebuild the world with it on aarch64. |