Bug 2119383
| Summary: | binutils not working correctly with "clang -flto" | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Jesus Checa <jchecahi> |
| Component: | binutils | Assignee: | Nick Clifton <nickc> |
| Status: | CLOSED WONTFIX | QA Contact: | qe-baseos-tools-bugs |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.9 | CC: | fweimer, mprchlik, nickc, ohudlick, qe-baseos-tools-bugs, sipoyare |
| Target Milestone: | rc | Keywords: | Bugfix, Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Known Issue | |
| Doc Text: |
Cause:
When the LLVM compiler generates object files intended for secondary compilation via LTO it uses an internal file format rather than ELF.
Consequence:
Tools which expect ELF format input files, eg the linker, nm, readelf, etc, will fail to recognise LLVM bitcode files.
Workaround (if any):
For most tools adding the command line option --plugin=LLVMgold.so will solve the problem. The readelf program does not support this option however, so an alternative is to use the llvm-bcanalyzer program.
Result:
Using the workarounds resolves the problem.
|
Story Points: | --- |
| Clone Of: | 2119380 | Environment: | |
| Last Closed: | 2022-08-18 16:05:32 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 2119380, 2120959 | ||
| Bug Blocks: | |||
|
Description
Jesus Checa
2022-08-18 13:45:49 UTC
Workarounds are available, so closing this BZ. |