# Patch lld to have a more sensible kill-at implementation · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/86e5bbffd757c211c062acef6c244ec94f5db668)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 86e5bbffd757c211c062acef6c244ec94f5db668

Requested commit: 86e5bbffd757c211c062acef6c244ec94f5db668

Commit: 86e5bbffd757c211c062acef6c244ec94f5db668

Tree: 917aa9d23ec295bc0461bca4a8319b46f42a1dc3

Author: LemonBoy

Committer: LemonBoy

## Message

```
Patch lld to have a more sensible kill-at implementation

Lift some code from llvm-dlltool, the lld code is meant to follow what
gnu ld does but that's not much useful for our purposes.

Also use the `--kill-at` option when generating the .lib files out of
mingw's .def files: this way our building process closely matches the
one use by the upstream and now finally generates files that allow both
C code and Zig code to link.

```

## Parents

- [c9a3c945dbc8d431fa5bdaf672401c312ead480f](https://git.cafe/gitcafe/zig/commit/c9a3c945dbc8d431fa5bdaf672401c312ead480f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/86e5bbffd757c211c062acef6c244ec94f5db668?format=markdown)
