Bug 31182 - /usr/bin/ld.gold: internal error in try_fix_erratum_843419_optimized, at ../../gold/aarch64.cc:2114
Summary: /usr/bin/ld.gold: internal error in try_fix_erratum_843419_optimized, at ../....
Status: UNCONFIRMED
Alias: None
Product: binutils
Classification: Unclassified
Component: gold (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Cary Coutant
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-20 00:37 UTC by Behrooze Sirang
Modified: 2023-12-20 00:37 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Behrooze Sirang 2023-12-20 00:37:14 UTC
I appear to be hitting an internal assertion in the gold linker causing linking to fail. It is 100% reproducible for a particular build target. A slight change in the source code can get rid of the issue, which I assume is by chance the problematic assembly sequence is not generated.

I was able to reproduce this on binutils 2.41 as well as on 2.34

I can work around this by downgrading the optimization level to `-O1`. I also found that I can work around this by disabling the errata fix via `--no-fix-cortex-a53-843419` option. However, I do not want to disable it given that it is meant to work around a hardware erratum.

If needed, I can provide more information about my build environment.