authorgravatar for davidgm94.work@protonmail.comDavid Gonzalez Martin <davidgm94.work@protonmail.com> 2022-11-20 09:29:06-06:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-01-09 14:35:21-07:00
log9498c95fafad5b1561f37461a7588e8b2a922044
tree6f3a243c76ec113f7c87535a53dfb67ddcf2216b
parent06dfa88d3fc5fa6fa8b91f69da23ef2e51fbacec

uefi: Delete unneeded alignment and use default 4K

Closes #7484. Right now for UEFI targets an alignment of 32 is being used for no reason other than support a rare bytecode. As this is far from the standard case, removing this alignment and using the default one, as most toolchains do, should be the desired behavior.

1 files changed, 0 insertions(+), 1 deletions(-)

src/link/Coff/lld.zig-1
...@@ -383,7 +383,6 @@ pub fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod...@@ -383,7 +383,6 @@ pub fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod
383 "-OPT:REF",383 "-OPT:REF",
384 "-SAFESEH:NO",384 "-SAFESEH:NO",
385 "-MERGE:.rdata=.data",385 "-MERGE:.rdata=.data",
386 "-ALIGN:32",
387 "-NODEFAULTLIB",386 "-NODEFAULTLIB",
388 "-SECTION:.xdata,D",387 "-SECTION:.xdata,D",
389 }),388 }),