| ... | @@ -871,6 +871,11 @@ fn elfLink(lld: *Lld, arena: Allocator) !void { | ... | @@ -871,6 +871,11 @@ fn elfLink(lld: *Lld, arena: Allocator) !void { |
| 871 | try std.fmt.allocPrint(arena, "-float-abi={s}", .{if (target.abi.float() == .hard) "hard" else "soft"}), | 871 | try std.fmt.allocPrint(arena, "-float-abi={s}", .{if (target.abi.float() == .hard) "hard" else "soft"}), |
| 872 | }); | 872 | }); |
| 873 | | 873 | |
| | 874 | switch (target.cpu.arch) { |
| | 875 | .armeb, .thumbeb => if (is_exe_or_dyn_lib and target.cpu.has(.arm, .has_v6)) try argv.append("--be8"), |
| | 876 | else => {}, |
| | 877 | } |
| | 878 | |
| 874 | if (comp.config.lto != .none) { | 879 | if (comp.config.lto != .none) { |
| 875 | switch (comp.root_mod.optimize_mode) { | 880 | switch (comp.root_mod.optimize_mode) { |
| 876 | .Debug => {}, | 881 | .Debug => {}, |