diff options
author | Maksim Panchenko <maks@fb.com> | 2024-02-16 14:25:59 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-16 14:25:59 -0800 |
commit | 5a2988714509d96d72b64e0c64998deb705d3572 (patch) | |
tree | 1a254036794bcbe4bdd54b29cdf1f5efb95674e6 /llvm/tools | |
parent | fde4b80cb772897a8cf0b3d022f3041e10b6e816 (diff) | |
download | llvm-5a2988714509d96d72b64e0c64998deb705d3572.zip llvm-5a2988714509d96d72b64e0c64998deb705d3572.tar.gz llvm-5a2988714509d96d72b64e0c64998deb705d3572.tar.bz2 |
[BOLT] Add writing support for Linux kernel ORC (#80950)
Update ORC information based on the new code layout and emit
corresponding ORC sections for the Linux kernel.
We rewrite ORC sections in place, which puts a limit on the size of new
section contents. Since ORC info changes for the new code layout and the
number of ORC entries can become larger, we free up space in the tables
by removing redundant ORC terminators. As a result, we effectively emit
fewer entries and have to add duplicate terminators at the end to match
the original section sizes. Ideally, we need to update ORC boundaries to
reflect the reduced size and optimize runtime lookup, but we will need
relocations for this, and the benefits will be marginal, if any.
Diffstat (limited to 'llvm/tools')
0 files changed, 0 insertions, 0 deletions