This is an archive of the discontinued LLVM Phabricator instance.

[ELF] -Map: Print symbols which needs canonical PLT entry/copy relocation just once
ClosedPublic

Authored by MaskRay on Dec 13 2021, 8:56 PM.

Details

Summary

If a copy related symbol (say copy) is referenced in two .o
files, this change removes a duplicated line from the -Map output:

202470           202470        1     1 .bss.rel.ro
202470           202470        1     1         <internal>:(.bss.rel.ro)
202470           202470        1     1                 copy
202470           202470        1     1                 copy

Diff Detail

Event Timeline

MaskRay created this revision.Dec 13 2021, 8:56 PM
MaskRay requested review of this revision.Dec 13 2021, 8:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 13 2021, 8:56 PM
MaskRay edited the summary of this revision. (Show Details)Dec 13 2021, 8:58 PM
ikudrin accepted this revision.Dec 14 2021, 1:59 AM

LGTM.

This revision is now accepted and ready to land.Dec 14 2021, 1:59 AM