[ELF] --cref: If -Map is specified, print to the map file
authorFangrui Song <i@maskray.me>
Mon, 29 Nov 2021 22:14:53 +0000 (14:14 -0800)
committerFangrui Song <i@maskray.me>
Mon, 29 Nov 2021 22:14:53 +0000 (14:14 -0800)
commit1ce51a5f355ffba72b01e5e688cda7bbba2aa282
treeaf83b250fddd4d4f618f30a7f1abdf2dde38baca
parent99f8b795cc03f9bcda7f9cbd9625c2976ae62bd5
[ELF] --cref: If -Map is specified, print to the map file

PR48282: This behavior matches GNU ld and gold.

Reviewed By: markj

Differential Revision: https://reviews.llvm.org/D114663
lld/ELF/MapFile.cpp
lld/ELF/MapFile.h
lld/ELF/Options.td
lld/ELF/Writer.cpp
lld/docs/ReleaseNotes.rst
lld/docs/ld.lld.1
lld/test/ELF/cref.s