riscvarchive / riscv-binutils-gdb

RISC-V backports for binutils-gdb. Development is done upstream at the FSF.
GNU General Public License v2.0
148 stars 233 forks source link

RISCV: align the compact PLT section entries #244

Closed ebahapo closed 3 years ago

ebahapo commented 3 years ago

Make sure that the PLT header and stub have a size which is a multiple of 16 bytes so that subsequent entries are so aligned as well in order to improve the performance.

    bfd/
    * elfnn-riscv.c (riscv_compact_plt_header): add NOPs to pad and
    align the code.