[all-commits] [llvm/llvm-project] e057d8: [ELF][PPC64] Use the regular placement for .branch_lt
Fangrui Song via All-commits
all-commits at lists.llvm.org
Wed Sep 13 19:15:56 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e057d8973cc6a9d0bcc5cc385f318a607d117693
https://github.com/llvm/llvm-project/commit/e057d8973cc6a9d0bcc5cc385f318a607d117693
Author: Fangrui Song <i at maskray.me>
Date: 2023-09-13 (Wed, 13 Sep 2023)
Changed paths:
M lld/ELF/Writer.cpp
Log Message:
-----------
[ELF][PPC64] Use the regular placement for .branch_lt
The currently rule places .branch_lt after .data, which does not make
sense. The original contributor probably wanted to place .branch_lt
before .got/.toc, but failed to notice that .got/.toc are RELRO and
placed earlier.
Remove the special case so that .branch_lt is actually closer to .toc,
alleviating the distance issue.
More information about the All-commits
mailing list