Skip to content

Aarch64 broken with gcc not supporting --fix-cortex-a53-843419 linker flag #161486

Description

@hgy59

It seams that rustc since 1.98 has hard coded pre-link-args like this, that breaks building with ld.bfd of gcc 4.9.4

"pre-link-args": {
    "gcc": [
        "-Wl,--fix-cortex-a53-843419"
    ]
}

It is not possible to get rid of this error with -mno-fix-cortex-a53-843419.

This regression comes from #155453

Code

I tried this code:

<code>

I expected to see this happen: regular linking

Instead, this happened: aarch64-unknown-linux-gnueabi/bin/ld.bfd: unrecognized option '--fix-cortex-a53-843419'

Version it worked on

It most recently worked on: 1.97.1

Version with regression

rustc --version --verbose:

1.98

Backtrace

Backtrace

<backtrace>

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.regression-untriagedUntriaged performance or correctness regression.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions