mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 09:58:19 +08:00
bfd/
* elf64-alpha.c (struct alpha_elf_link_hash_table): Add relax_trip. (elf64_alpha_size_got_sections): Remove unused something_changed local. (elf64_alpha_size_plt_section): Return void. (elf64_alpha_size_rela_got_section): Likewise. (elf64_alpha_relax_section): Only regenerate got+plt if the relax_trip counter has changed. include/ * bfdlink.h (struct bfd_link_info): Add relax_trip. ld/ * ldlang.c (relax_sections): Initialize and increment link_info.relax_trip.
This commit is contained in:
@ -5664,9 +5664,11 @@ relax_sections (void)
|
||||
/* Keep relaxing until bfd_relax_section gives up. */
|
||||
bfd_boolean relax_again;
|
||||
|
||||
link_info.relax_trip = -1;
|
||||
do
|
||||
{
|
||||
relax_again = FALSE;
|
||||
link_info.relax_trip++;
|
||||
|
||||
/* Note: pe-dll.c does something like this also. If you find
|
||||
you need to change this code, you probably need to change
|
||||
|
Reference in New Issue
Block a user