commit 669c2054a83cac594e5bbca4a7ca677e3b3a1a0d (tree)
parent ed1e5cb3f62e12f3939e6f20d387a5c205a44a3d
Author: Andrew Kelley <andrew@ziglang.org>
Date: Fri, 19 Feb 2021 22:55:42 -0700
stage2: debug line nops supports bigger padding
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/link/Elf.zig b/src/link/Elf.zig
@@ -3037,7 +3037,7 @@ const min_nop_size = 2;
/// Writes to the file a buffer, prefixed and suffixed by the specified number of
/// bytes of NOPs. Asserts each padding size is at least `min_nop_size` and total padding bytes
-/// are less than 126,976 bytes (if this limit is ever reached, this function can be
+/// are less than 1044480 bytes (if this limit is ever reached, this function can be
/// improved to make more than one pwritev call, or the limit can be raised by a fixed
/// amount by increasing the length of `vecs`).
fn pwriteDbgLineNops(
@@ -3052,7 +3052,7 @@ fn pwriteDbgLineNops(
const page_of_nops = [1]u8{DW.LNS_negate_stmt} ** 4096;
const three_byte_nop = [3]u8{ DW.LNS_advance_pc, 0b1000_0000, 0 };
- var vecs: [32]std.os.iovec_const = undefined;
+ var vecs: [256]std.os.iovec_const = undefined;
var vec_index: usize = 0;
{
var padding_left = prev_padding_size;