diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-10-09 22:03:42 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-10-09 22:04:00 -0700 |
commit | fc3c534364ca6d6de4f0dbcaf347ec85f5e2f8ff (patch) | |
tree | 6c238d0947b088bfc688ed2be95db1314a296232 /bfd/ChangeLog | |
parent | b9399fcf4ec90d898a610e39bd9141e85c008fbb (diff) | |
download | gdb-fc3c534364ca6d6de4f0dbcaf347ec85f5e2f8ff.zip gdb-fc3c534364ca6d6de4f0dbcaf347ec85f5e2f8ff.tar.gz gdb-fc3c534364ca6d6de4f0dbcaf347ec85f5e2f8ff.tar.bz2 |
riscv: Cache the max alignment of output sections
Cache the max alignment of output sections instead of scanning all
output sections for each input section, which can take a very long
time if there are millions of input/output sections.
PR ld/22274
* elfnn-riscv.c (riscv_elf_link_hash_table): Add max_alignment.
(riscv_elf_link_hash_table_create): Initialize max_alignment to
(bfd_vma) -1.
(_bfd_riscv_relax_section): Cache the max alignment of output
sections if possible.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e6bd06f..f988812 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,12 @@ +2017-10-09 H.J. Lu <hongjiu.lu@intel.com> + + PR ld/22274 + * elfnn-riscv.c (riscv_elf_link_hash_table): Add max_alignment. + (riscv_elf_link_hash_table_create): Initialize max_alignment to + (bfd_vma) -1. + (_bfd_riscv_relax_section): Cache the max alignment of output + sections if possible. + 2017-10-10 Alan Modra <amodra@gmail.com> * elf64-ppc.c (ppc64_elf_before_check_relocs): Set sec_type for |