[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.
a833bdcd7eMotiejus Jakštys committed on 9/9/2022, 2:30:32 AM· committed by Andrew Kelleyparentab4b26d
4 files changedLine totals unavailable