diff options
| author | Fangrui Song <maskray@google.com> | 2020-04-23 20:47:52 -0700 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2020-04-27 11:20:41 -0700 |
| commit | fd624e623d34dd0e812b7fdce73bdff15f456826 (patch) | |
| tree | 4e1237ca871c1a1561a4e65bc87cfdcf6617f8fd /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | dab1326a5ae32ffd2dc277027e1ae68d8b5124d5 (diff) | |
[llvm-objcopy] Don't specialize the all zero p_paddr case
Spotted by https://reviews.llvm.org/D74755#1998673
> it looks like OrderedSegments in the function is only used to set the physical address to the virtual address when there are no physical addresses set amongst these sections.
I believe this behavior was copied from https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=6ffd79000b45e77b3625143932ffbf781b6aecab (2008-05)
The commit was made for some corner cases of very old linkers.
This special rule does not seem useful and remove it can allow us to
delete a large chunk of code.
Reviewed By: jhenderson, jakehehrlich
Differential Revision: https://reviews.llvm.org/D78786
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
