diff options
author | Fangrui Song <maskray@google.com> | 2020-02-04 13:52:10 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-02-14 20:03:04 -0800 |
commit | 0fbe2215438b6598b4bc54c64812cab792ba5862 (patch) | |
tree | 5ef825a4738a9807bea6e844140d42135d0241e9 /llvm/lib/Target/ARM/ARMTargetObjectFile.cpp | |
parent | b70297a39ab9c8ad27e5681928b10073ed7db2fb (diff) | |
download | llvm-0fbe2215438b6598b4bc54c64812cab792ba5862.zip llvm-0fbe2215438b6598b4bc54c64812cab792ba5862.tar.gz llvm-0fbe2215438b6598b4bc54c64812cab792ba5862.tar.bz2 |
[MC][ELF] Make linked-to symbol name part of ELFSectionKey
https://bugs.llvm.org/show_bug.cgi?id=44775
This rule has been implemented by GNU as https://sourceware.org/ml/binutils/2020-02/msg00028.html (binutils >= 2.35)
It allows us to simplify
```
.section .foo,"o",foo,unique,0
.section .foo,"o",bar,unique,1 # different section
```
to
```
.section .foo,"o",foo
.section .foo,"o",bar # different section
```
We consider the two `.foo` different even if the linked-to symbols foo and bar
are defined in the same section. This is a deliberate choice so that we don't
need to know the section where foo and bar are defined beforehand.
Differential Revision: https://reviews.llvm.org/D74006
Diffstat (limited to 'llvm/lib/Target/ARM/ARMTargetObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions