This is an archive of the discontinued LLVM Phabricator instance.

ELF: Exclude dead symbols from -Map output.
ClosedPublic

Authored by pcc on Jul 13 2017, 5:21 PM.

Details

Summary

This was previously erroring out if one of the dead symbols was a
TLS symbol and we were able to discard all TLS sections.

Event Timeline

pcc created this revision.Jul 13 2017, 5:21 PM
ruiu accepted this revision.Jul 13 2017, 5:29 PM

LGTM

lld/test/ELF/map-gc-sections.s
3

Forgot to add RUN:? You could do

ld.lld %t.o -o %t -Map=- --gc-sections | FileCheck %s
This revision is now accepted and ready to land.Jul 13 2017, 5:29 PM
This revision was automatically updated to reflect the committed changes.
pcc marked an inline comment as done.