aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2023-10-25 23:25:56 +0200
committerGitHub <noreply@github.com>2023-10-25 23:25:56 +0200
commitcc394431ae6eb69e7abd677c268a8ab7299f8aeb (patch)
treed5aa705cdc7d701b53f32a8c2acc099c2dbd90c5 /src/Module.zig
parent10ea7accf76d4ad59222ea5ff3585d6cc7cfe3b0 (diff)
parented00afbc4c1eec6d599ac277e364b4a1ed11fe5c (diff)
downloadzig-cc394431ae6eb69e7abd677c268a8ab7299f8aeb.tar.gz
zig-cc394431ae6eb69e7abd677c268a8ab7299f8aeb.zip
Merge pull request #17699 from ziglang/elf-better-alloc
elf: allocated PHDR table always immediately succeeding the EHDR
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Module.zig b/src/Module.zig
index 78304869c3..1f80669f2e 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -5846,7 +5846,8 @@ pub const Feature = enum {
pub fn backendSupportsFeature(mod: Module, feature: Feature) bool {
return switch (feature) {
.panic_fn => mod.comp.bin_file.options.target.ofmt == .c or
- mod.comp.bin_file.options.use_llvm,
+ mod.comp.bin_file.options.use_llvm or
+ mod.comp.bin_file.options.target.cpu.arch == .x86_64,
.panic_unwrap_error => mod.comp.bin_file.options.target.ofmt == .c or
mod.comp.bin_file.options.use_llvm,
.safety_check_formatted => mod.comp.bin_file.options.target.ofmt == .c or