diff options
| author | Nathan Bourgeois <iridescentrosesfall@gmail.com> | 2020-10-01 15:57:19 -0400 |
|---|---|---|
| committer | Nathan <iridescentrosesfall@gmail.com> | 2020-10-01 17:04:04 -0400 |
| commit | 4566b273733be9508b6178742293008d8d66451e (patch) | |
| tree | 0b7661f908845790eafdf8d2a3135f9a91d44080 /src/Compilation.zig | |
| parent | bf0afaa876391571f6072650bf450356b26c928d (diff) | |
| download | zig-4566b273733be9508b6178742293008d8d66451e.tar.gz zig-4566b273733be9508b6178742293008d8d66451e.zip | |
Patch in emit relocs support
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 623635a6b0..fc801c7789 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -352,6 +352,7 @@ pub const InitOptions = struct { time_report: bool = false, stack_report: bool = false, link_eh_frame_hdr: bool = false, + link_emit_relocs: bool = false, linker_script: ?[]const u8 = null, version_script: ?[]const u8 = null, override_soname: ?[]const u8 = null, @@ -447,6 +448,7 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { options.system_libs.len != 0 or options.link_libc or options.link_libcpp or options.link_eh_frame_hdr or + options.link_emit_relocs or options.output_mode == .Lib or options.lld_argv.len != 0 or options.linker_script != null or options.version_script != null) @@ -769,6 +771,7 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { .version_script = options.version_script, .gc_sections = options.linker_gc_sections, .eh_frame_hdr = options.link_eh_frame_hdr, + .emit_relocs = options.link_emit_relocs, .rdynamic = options.rdynamic, .extra_lld_args = options.lld_argv, .override_soname = options.override_soname, |
