aboutsummaryrefslogtreecommitdiff
path: root/lib/std/macho.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2021-05-17 17:59:38 +0200
committerJakub Konka <kubkon@jakubkonka.com>2021-05-18 09:28:00 +0200
commit1dac5f5214aa9e35ad0fbc2ba561a894bd193ae3 (patch)
tree5badfc9bca79b7f59780648cd504203e66097c0d /lib/std/macho.zig
parentca772735c3d01c58551639d8bcfe355bc7ac9785 (diff)
downloadzig-1dac5f5214aa9e35ad0fbc2ba561a894bd193ae3.tar.gz
zig-1dac5f5214aa9e35ad0fbc2ba561a894bd193ae3.zip
zld: parse dylibs as positionals
* add preliminary rpath support * enable shared_library test on x86_64 macOS
Diffstat (limited to 'lib/std/macho.zig')
-rw-r--r--lib/std/macho.zig13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/std/macho.zig b/lib/std/macho.zig
index cbbbdc1d06..0cbb0f0f11 100644
--- a/lib/std/macho.zig
+++ b/lib/std/macho.zig
@@ -516,6 +516,19 @@ pub const dylib = extern struct {
compatibility_version: u32,
};
+/// The rpath_command contains a path which at runtime should be added to the current
+/// run path used to find @rpath prefixed dylibs.
+pub const rpath_command = extern struct {
+ /// LC_RPATH
+ cmd: u32,
+
+ /// includes string
+ cmdsize: u32,
+
+ /// path to add to run path
+ path: u32,
+};
+
/// The segment load command indicates that a part of this file is to be
/// mapped into the task's address space. The size of this segment in memory,
/// vmsize, maybe equal to or larger than the amount to map from this file,