# \[ld\] add \-\-print\-\* for diagnostics · gitcafe/zig

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

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

Visibility: public

Requested revision: a833bdcd7e6fcfee6e9cc33a3f7de78b16a36941

Requested commit: a833bdcd7e6fcfee6e9cc33a3f7de78b16a36941

Commit: a833bdcd7e6fcfee6e9cc33a3f7de78b16a36941

Tree: 5b45c1662789e9743d328356167b3dce72495bfd

Author: Motiejus Jakštys

Committer: Andrew Kelley

## Message

```
[ld] add --print-* for diagnostics

This adds the following for passthrough to lld:
- `--print-gc-sections`
- `--print-icf-sections`
- `--print-map`

I am not adding these to the cache manifest, since it does not change
the produced artifacts.

Tested with an example from #11398: it successfully prints the resulting
map and the GC'd sections.

```

## Parents

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

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