LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 39468 - Please backport r341312 - [Aarch64] Fix linker emulation for Aarch64 big endian
Summary: Please backport r341312 - [Aarch64] Fix linker emulation for Aarch64 big endian
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: Backend: AArch64 (show other bugs)
Version: trunk
Hardware: PC Linux
: P enhancement
Assignee: Tom Stellard
URL:
Keywords:
Depends on:
Blocks: release-7.0.1
  Show dependency tree
 
Reported: 2018-10-28 01:05 PDT by Michał Górny
Modified: 2018-11-01 18:58 PDT (History)
4 users (show)

See Also:
Fixed By Commit(s): r341312 r345920


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny 2018-10-28 01:05:35 PDT
I've received a bug report from our AArch64 team that clang fails on big-endian userspace.  Apparently, it has been already fixed in trunk and since the fix is quite obvious, I'd like to request backporting it to 7.0.1.

The commit is r341312, i.e.:

---
[Aarch64] Fix linker emulation for Aarch64 big endian

This patch fixes target linker emulation for aarch64 big endian.
aarch64_be_linux is not recognized by gnu ld. The equivalent emulation
mode supported by gnu ld is aarch64linuxb.

Patch by: Bharathi Seshadri

Reviewed by: Peter Smith

Differential Revision: https://reviews.llvm.org/D42930



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@341312 91177308-0d34-0410-b5e6-96231b3b80d8
Comment 1 Tom Stellard 2018-10-31 09:43:35 PDT
Tim,

Is this OK to merge?

https://reviews.llvm.org/rL341312
Comment 2 Tim Northover 2018-11-01 09:20:47 PDT
Yep, it looks fine to me.
Comment 3 Tom Stellard 2018-11-01 18:58:23 PDT
Merged: r345920