[all-commits] [llvm/llvm-project] 6a4401: [ELF] -Map: Print symbols which needs canonical PL...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Dec 14 10:31:18 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6a44013b0e319979ce6ea9ead2a740564e434f76
      https://github.com/llvm/llvm-project/commit/6a44013b0e319979ce6ea9ead2a740564e434f76
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-12-14 (Tue, 14 Dec 2021)

  Changed paths:
    M lld/ELF/MapFile.cpp
    A lld/test/ELF/map-file-copy.s

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

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
removed   202470           202470        1     1                 copy
```

Differential Revision: https://reviews.llvm.org/D115697




More information about the All-commits mailing list