commit 5e3ce11b1863b05aba8a2ccadc1140a383ff031a (tree)
parent 1bc197bc02eff484355a238f1cb6a87305f95952
Author: Nathan <iridescentrosesfall@gmail.com>
Date: Thu, 1 Oct 2020 17:47:32 -0400
Resolve name and format issues.
Diffstat:
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/std/build.zig b/lib/std/build.zig
@@ -2076,8 +2076,8 @@ pub const LibExeObjStep = struct {
if (self.link_eh_frame_hdr) {
try zig_args.append("--eh-frame-hdr");
}
- if(self.link_emit_relocs){
- try zig_args.append("-emit-relocs");
+ if(self.link_emit_relocs) {
+ try zig_args.append("--emit-relocs");
}
if (self.link_function_sections) {
try zig_args.append("-ffunction-sections");
diff --git a/src/link/Elf.zig b/src/link/Elf.zig
@@ -1367,7 +1367,7 @@ fn linkWithLLD(self: *Elf, comp: *Compilation) !void {
}
if (self.base.options.emit_relocs) {
- try argv.append("-emit-relocs");
+ try argv.append("--emit-relocs");
}
if (self.base.options.rdynamic) {
diff --git a/src/main.zig b/src/main.zig
@@ -273,7 +273,7 @@ const usage_build_generic =
\\ -rdynamic Add all symbols to the dynamic symbol table
\\ -rpath [path] Add directory to the runtime library search path
\\ --eh-frame-hdr Enable C++ exception handling by passing --eh-frame-hdr to linker
- \\ -emit-relocs Enable output of relocation sections for post build tools
+ \\ --emit-relocs Enable output of relocation sections for post build tools
\\ -dynamic Force output to be dynamically linked
\\ -static Force output to be statically linked
\\ -Bsymbolic Bind global references locally