diff options
| author | Alexandros Naskos <alex_naskos@hotmail.com> | 2020-10-02 17:00:47 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-02 17:00:47 +0300 |
| commit | 55eb7c16c00d333837a9cc1472ca99fafd61a9b8 (patch) | |
| tree | 8a88ae7037e1616bb963c4e2cd763c227f364525 /src/Compilation.zig | |
| parent | cd4c1ea790dff077cec3782f6e9c52fd58c5c6ba (diff) | |
| parent | 84b6d2a80afe26c4b37550c89086cef2f6d066ab (diff) | |
| download | zig-55eb7c16c00d333837a9cc1472ca99fafd61a9b8.tar.gz zig-55eb7c16c00d333837a9cc1472ca99fafd61a9b8.zip | |
Merge pull request #6494 from IridescentRose/emit-reloc-patch
Emit reloc patch
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, |
