aboutsummaryrefslogtreecommitdiff
path: root/src/link.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-12-13 18:28:00 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-01-01 17:51:19 -0700
commit33cdf33b95676dca9f91216e0f8742f9cf7e84fb (patch)
tree59ccf012a4fc839def23bce321c1735b6bdf5651 /src/link.zig
parentb162c3c820d8a6446bbdfba90b3c135ebcd76fcb (diff)
downloadzig-33cdf33b95676dca9f91216e0f8742f9cf7e84fb.tar.gz
zig-33cdf33b95676dca9f91216e0f8742f9cf7e84fb.zip
compiler: update many references to bin_file.options
Diffstat (limited to 'src/link.zig')
-rw-r--r--src/link.zig19
1 files changed, 4 insertions, 15 deletions
diff --git a/src/link.zig b/src/link.zig
index 580b2d7daf..5908a07dec 100644
--- a/src/link.zig
+++ b/src/link.zig
@@ -32,8 +32,6 @@ pub const SystemLib = struct {
path: ?[]const u8,
};
-pub const SortSection = enum { name, alignment };
-
pub const CacheMode = enum { incremental, whole };
pub fn hashAddSystemLibs(
@@ -51,10 +49,6 @@ pub fn hashAddSystemLibs(
pub const producer_string = if (builtin.is_test) "zig test" else "zig " ++ build_options.version;
-pub const HashStyle = enum { sysv, gnu, both };
-
-pub const CompressDebugSections = enum { none, zlib, zstd };
-
pub const File = struct {
tag: Tag,
@@ -105,12 +99,9 @@ pub const File = struct {
image_base: ?u64,
function_sections: bool,
data_sections: bool,
- no_builtin: bool,
eh_frame_hdr: bool,
emit_relocs: bool,
rdynamic: bool,
- optimization: u8,
- linker_script: ?[]const u8,
z_nodelete: bool,
z_notext: bool,
z_defs: bool,
@@ -123,7 +114,7 @@ pub const File = struct {
tsaware: bool,
nxcompat: bool,
dynamicbase: bool,
- compress_debug_sections: CompressDebugSections,
+ compress_debug_sections: Elf.CompressDebugSections,
bind_global_refs_locally: bool,
import_symbols: bool,
import_table: bool,
@@ -136,13 +127,14 @@ pub const File = struct {
each_lib_rpath: bool,
build_id: std.zig.BuildId,
disable_lld_caching: bool,
- hash_style: HashStyle,
- sort_section: ?SortSection,
+ hash_style: Elf.HashStyle,
+ sort_section: ?Elf.SortSection,
major_subsystem_version: ?u32,
minor_subsystem_version: ?u32,
gc_sections: ?bool,
allow_shlib_undefined: ?bool,
subsystem: ?std.Target.SubSystem,
+ linker_script: ?[]const u8,
version_script: ?[]const u8,
soname: ?[]const u8,
print_gc_sections: bool,
@@ -192,9 +184,6 @@ pub const File = struct {
/// (Windows) .def file to specify when linking
module_definition_file: ?[]const u8,
- /// (SPIR-V) whether to generate a structured control flow graph or not
- want_structured_cfg: ?bool,
-
wasi_emulated_libs: []const wasi_libc.CRTFile,
};