diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-05-11 14:44:10 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-05-11 14:44:10 -0700 |
| commit | 26718a619c572602c21c83b1588e50723447709a (patch) | |
| tree | 6c28906895aaf119e7d344c58b5b0f2c2380fb7a /src/link.cpp | |
| parent | 6b7ffd4cbe1006013cda4a36c9659c4822ae1b53 (diff) | |
| download | zig-26718a619c572602c21c83b1588e50723447709a.tar.gz zig-26718a619c572602c21c83b1588e50723447709a.zip | |
recognize ar program and pass --gc-sections to ld
See #54
Diffstat (limited to 'src/link.cpp')
| -rw-r--r-- | src/link.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/link.cpp b/src/link.cpp index a2fab50373..d0e8a1bf39 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -152,6 +152,7 @@ static void construct_linker_job_linux(LinkJob *lj) { find_libc_lib_path(g); } + lj->args.append("--gc-sections"); lj->args.append("-m"); lj->args.append(getLDMOption(&g->zig_target)); |
