Resolve name and format issues.

This commit is contained in:
Nathan 2020-10-01 17:47:32 -04:00
parent 1bc197bc02
commit 5e3ce11b18
3 changed files with 4 additions and 4 deletions

View File

@ -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");

View File

@ -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) {

View File

@ -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