aboutsummaryrefslogtreecommitdiff
path: root/src/link.cpp
AgeCommit message (Collapse)Author
2017-04-05add support to use zig as a linker driverAndrew Kelley
closes #243 I also added --grep to ./run_tests if you want to single out some specific tests
2017-04-04link: correctly print debug linker invocationAndrew Kelley
2017-04-04link: fix ignoring first linker argAndrew Kelley
LLD treats the first argument as arg[0], the exe name
2017-04-03link: delete code that checks the linker versionAndrew Kelley
since we depend on LLD for linking
2017-03-26add stack protector safety when linking libcAndrew Kelley
* introduce zigrt file. it contains only weak symbols so that multiple instances can be merged. it contains __zig_panic so that multiple .o files can call the same panic function. * remove `@setFnVisible` builtin and add @setGlobalLinkage builtin which is more powerful * add `@panic` builtin function. * fix collision of symbols with extern prototypes and internal function names * add stack protector safety when linking against libc. To add the safety mechanism without libc requires implementing Thread Local Storage. See #276
2017-03-26organize std and make import relative to current fileAndrew Kelley
closes #216
2017-03-22unify main entry point regardless of whether linking libcAndrew Kelley
closes #248
2017-03-13add --each-lib-rpath option and corresponding config optionAndrew Kelley
This adds an rpath entry for each used dynamic library directory. This is necessary on some systems such as NixOS.
2017-03-13use lld instead of system linkerAndrew Kelley
2017-02-03in freestanding environment, assume gnu binutilsAndrew Kelley
for now. soon LLD will free us from depending on system linkers.
2017-02-03add ability to set linker scriptAndrew Kelley
2016-09-21fix incorrect linking from previous commitAndrew Kelley
2016-09-21exporting an object creates an h fileAndrew Kelley
2016-09-19use size_t for indexesAndrew Kelley
protect against incorrect copies in debug mode
2016-09-18ability to specify -framework linker args for MacOSAndrew Kelley
2016-09-14MacOSX compatibilityalter
- Implemented some syscall for MacOSX - tested on : El Capitan 10.11 x86_64 - make self hosted test run on macosx - modified run_test so it does not fail when parseh throws warnings (most of them are related to buildin types from gcc that arent defined in header files and unions) - making -mmacosx-version-min and -mios-version-min works like gcc (command line paramers have precedence over enviroment variables)
2016-09-10rename LLVMZig to ZigLLVMAndrew Kelley
2016-09-01restore shared library functionalityAndrew Kelley
2016-05-12Add --zig-std-dirJosé Miguel Sánchez
2016-05-11recognize ar program and pass --gc-sections to ldAndrew Kelley
See #54
2016-05-07add debug safety for divisionAndrew Kelley
See #149
2016-05-07link: don't put -l in front of .a or .so filesAndrew Kelley
2016-02-17link: on windows link test runner and builtin o filesAndrew Kelley
2016-02-17os: implement windows os layerAndrew Kelley
2016-02-16rename 'environ' to 'env_type'Andrew Kelley
environ appears to clash with another symbol in mingw land
2016-02-16update bootstrap to work for macos tooAndrew Kelley
* Directives can have arbitrary expressions as parameters * Fix switch statement not generating code sometimes * Rename "main" fn in bootstrap.zig to "zig_user_main" to avoid name collisions * codegen: fix badref when unreachable is last thing in an expression * support #condition directive on exported functions
2016-02-15linking on darwin: provide builtins and -archAndrew Kelley
2016-02-15add missing system library to darwin linker jobAndrew Kelley
2016-02-15first pass at linking on macosAndrew Kelley
2016-02-15handle libc include path and libc lib path differentlyAndrew Kelley
2016-02-13respect link order in source codeAndrew Kelley
2016-02-13add @ctz, @clz and compiler_rt implementationAndrew Kelley
2016-02-12i386 supportAndrew Kelley
closes #115 Thanks to Seo Sanghyeon for the port code.
2016-02-11ability to cross compileAndrew Kelley
hello_libc.zig can produce a windows build