| author | |
| committer | |
| log | 36950815a464c9226783fcdf1190af38950b7405 |
| tree | c9a0c2a069e1d587e1b9215eb19424010e90a180 |
| parent | a279cf81b2249ec7f5f7818fd0e3db3ce299853f |
Because this was not set, the `-dynamic-path` argument was not passed
to LLD when linking an ELF binary. This would still generate a valid glibc
binary, however when executing would result in a segfault.1 files changed, 2 insertions(+), 0 deletions(-)
src/test.zig+2| ... | ... | @@ -657,8 +657,10 @@ pub const TestContext = struct { |
| 657 | 657 | .object_format = case.object_format, |
| 658 | 658 | .is_native_os = case.target.isNativeOs(), |
| 659 | 659 | .is_native_abi = case.target.isNativeAbi(), |
| 660 | .dynamic_linker = target_info.dynamic_linker.get(), | |
| 660 | 661 | .link_libc = case.llvm_backend, |
| 661 | 662 | .use_llvm = case.llvm_backend, |
| 663 | .use_lld = case.llvm_backend, | |
| 662 | 664 | .self_exe_path = std.testing.zig_exe_path, |
| 663 | 665 | }); |
| 664 | 666 | defer comp.destroy(); |