diff options
| author | Kenta Iwasaki <kenta@lithdew.net> | 2022-01-01 06:32:37 +0900 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-01-19 11:22:10 -0700 |
| commit | 5ae3e4e9bd5216c7cc2305c8996ed413c89c59e7 (patch) | |
| tree | fc0a9852022f89d33d249540527296e7477e7f19 /src/link.zig | |
| parent | beb7495e19d23b4814e16772888e80688ad10e47 (diff) | |
| download | zig-5ae3e4e9bd5216c7cc2305c8996ed413c89c59e7.tar.gz zig-5ae3e4e9bd5216c7cc2305c8996ed413c89c59e7.zip | |
lld: allow for entrypoint symbol name to be set
This commit enables for the entrypoint symbol to be set when linking ELF
or WebAssembly modules with lld using the Zig compiler.
Diffstat (limited to 'src/link.zig')
| -rw-r--r-- | src/link.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/link.zig b/src/link.zig index 3dc75c77e8..916dea0429 100644 --- a/src/link.zig +++ b/src/link.zig @@ -84,6 +84,7 @@ pub const Options = struct { /// the binary file does not already have such a section. program_code_size_hint: u64 = 256 * 1024, entry_addr: ?u64 = null, + entry: ?[]const u8, stack_size_override: ?u64, image_base_override: ?u64, cache_mode: CacheMode, |
