[all-commits] [llvm/llvm-project] 5014d6: [ELF] -Map --why-extract=: print despite errors
Fangrui Song via All-commits
all-commits at lists.llvm.org
Wed Jan 12 10:40:46 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5014d6fc53d8208cf5940fb1ccab62e78ee2f146
https://github.com/llvm/llvm-project/commit/5014d6fc53d8208cf5940fb1ccab62e78ee2f146
Author: Fangrui Song <i at maskray.me>
Date: 2022-01-12 (Wed, 12 Jan 2022)
Changed paths:
M lld/ELF/Writer.cpp
M lld/test/ELF/map-file.s
M lld/test/ELF/why-extract.s
Log Message:
-----------
[ELF] -Map --why-extract=: print despite errors
Fix https://github.com/llvm/llvm-project/issues/53073
In case of a relocation error, GNU ld's link map includes
the archive member extraction information but not output sections.
Our -Map and --why-extract= are currently no-op in case of an error.
This change makes the two options work.
Reviewed By: ikudrin, peter.smith
Differential Revision: https://reviews.llvm.org/D116838
More information about the All-commits
mailing list