-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1498 from hadfl/llvm_18
clang 18 should be able to cross compile for aarch64
- Loading branch information
Showing
5 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Ensure .eh_frame is consistently read-only for aarch64 | ||
|
||
diff -wpruN --no-dereference '--exclude=*.orig' a~/lib/MC/MCObjectFileInfo.cpp a/lib/MC/MCObjectFileInfo.cpp | ||
--- a~/lib/MC/MCObjectFileInfo.cpp 1970-01-01 00:00:00 | ||
+++ a/lib/MC/MCObjectFileInfo.cpp 1970-01-01 00:00:00 | ||
@@ -381,8 +381,10 @@ void MCObjectFileInfo::initELFMCObjectFi | ||
// Solaris requires different flags for .eh_frame to seemingly every other | ||
// platform. | ||
unsigned EHSectionFlags = ELF::SHF_ALLOC; | ||
- if (T.isOSSolaris() && T.getArch() != Triple::x86_64) | ||
+ if (T.isOSSolaris() && T.getArch() != Triple::x86_64 && | ||
+ T.getArch() != Triple::aarch64) { | ||
EHSectionFlags |= ELF::SHF_WRITE; | ||
+ } | ||
|
||
// ELF | ||
BSSSection = Ctx->getELFSection(".bss", ELF::SHT_NOBITS, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
aarch64-eh_frame-ro.patch |