-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[lld] Error on unsupported split stack #88063
Conversation
@llvm/pr-subscribers-lld-elf Author: Patrick O'Neill (patrick-rivos) ChangesTargets with no Resolves #88061 Full diff: https://github.com/llvm/llvm-project/pull/88063.diff 1 Files Affected:
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp
index d879a427e9c096..735b2a82d851b4 100644
--- a/lld/ELF/Target.cpp
+++ b/lld/ELF/Target.cpp
@@ -141,7 +141,7 @@ bool TargetInfo::needsThunk(RelExpr expr, RelType type, const InputFile *file,
bool TargetInfo::adjustPrologueForCrossSplitStack(uint8_t *loc, uint8_t *end,
uint8_t stOther) const {
- llvm_unreachable("Target doesn't support split stacks.");
+ fatal("Target doesn't support split stacks.");
}
bool TargetInfo::inBranchRange(RelType type, uint64_t src, uint64_t dst) const {
|
@llvm/pr-subscribers-lld Author: Patrick O'Neill (patrick-rivos) ChangesTargets with no Resolves #88061 Full diff: https://github.com/llvm/llvm-project/pull/88063.diff 1 Files Affected:
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp
index d879a427e9c096..735b2a82d851b4 100644
--- a/lld/ELF/Target.cpp
+++ b/lld/ELF/Target.cpp
@@ -141,7 +141,7 @@ bool TargetInfo::needsThunk(RelExpr expr, RelType type, const InputFile *file,
bool TargetInfo::adjustPrologueForCrossSplitStack(uint8_t *loc, uint8_t *end,
uint8_t stOther) const {
- llvm_unreachable("Target doesn't support split stacks.");
+ fatal("Target doesn't support split stacks.");
}
bool TargetInfo::inBranchRange(RelType type, uint64_t src, uint64_t dst) const {
|
|
Test? |
Will do - I'm not familiar with stack splitting/how to write a concise testcase that triggers it so it might take me some time. |
Targets with no `-fstack-split` support now emit `ld.lld: error: Target doesn't support split stacks.` instead of `UNREACHABLE executed` with a backtrace asking the user to report a bug. Resolves llvm#88061
45e78c7
to
9bc9fb0
Compare
Added testcase and force-pushed to get rid of the github email address from the commit. |
Ping. |
Thanks for the review! |
Targets with no
-fstack-split
support now emitld.lld: error: target doesn't support split stacks
instead ofUNREACHABLE executed
with a backtrace asking the user to report a bug.Resolves #88061