[bfd] Provide 8-byte minimum alignment for .plt section
authorJohn David Anglin <danglin@gcc.gnu.org>
Sun, 20 Oct 2019 16:01:58 +0000 (12:01 -0400)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sun, 20 Oct 2019 16:01:58 +0000 (12:01 -0400)
commit2c9e9550caf28bceb6b8540520f7378e1b1bb9c2
tree910c06603154c5eeda877d24092c4a5871b6e0bc
parent80051c7439399c861b52af0546ad67367f7184e4
[bfd] Provide 8-byte minimum alignment for .plt section

This change increases the default alignment for the .plt section
from 4 bytes to 8 bytes.  When function descriptors are 8-byte
aligned, they can be updated atomically on 32-bit hppa.  This
helps with ordering issues on SMP machines.  It also ensures
that descriptors reside on the same cache line.  This reduces
the probability of a double TLB miss in a call.

2019-10-20  John David Anglin  <danglin@gcc.gnu.org>

* elf32-hppa.c (elf32_hppa_size_dynamic_sections): Provide 8-byte
minimum alignment for .plt section.
bfd/ChangeLog
bfd/elf32-hppa.c
This page took 0.028436 seconds and 4 git commands to generate.