aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2025-12-01 11:06:23 +0800
committerH.J. Lu <hjl.tools@gmail.com>2025-12-06 10:06:41 +0800
commit895cf907af85e18b765560433211b62d069cc83c (patch)
tree9d8866b6ebf288170e915a4faa8642cc8cc0de26
parentd5b168b7585fba521672c8f5ea5fb34e280ccc65 (diff)
downloadbinutils-895cf907af85e18b765560433211b62d069cc83c.zip
binutils-895cf907af85e18b765560433211b62d069cc83c.tar.gz
binutils-895cf907af85e18b765560433211b62d069cc83c.tar.bz2
hppa64: Set has_local_dynsyms when adding __text_seg/__data_seg
commit 54fbc12d6404b645363f901110a21f4410067df5 Author: H.J. Lu <hjl.tools@gmail.com> Date: Fri Nov 28 16:07:57 2025 +0800 elf: Renumber local dynamic symbols only if needed caused regressions for hppa64-linux which adds local dynamic symbols, __text_seg and __data_seg in elf64_hppa_late_size_sections. Set has_local_dynsyms to true when adding __text_seg and __data_seg. * elf64-hppa.c (elf64_hppa_late_size_sections): Set has_local_dynsyms to true when adding __text_seg and __data_seg. Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
-rw-r--r--bfd/elf64-hppa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c
index 026c8a6..d1c0212 100644
--- a/bfd/elf64-hppa.c
+++ b/bfd/elf64-hppa.c
@@ -1698,6 +1698,7 @@ elf64_hppa_late_size_sections (bfd *output_bfd, struct bfd_link_info *info)
nh->other = STV_DEFAULT;
bfd_elf_link_record_dynamic_symbol (info, nh);
hppa_info->text_hash_entry = nh;
+ hppa_info->root.has_local_dynsyms = true;
}
}
}
@@ -1728,6 +1729,7 @@ elf64_hppa_late_size_sections (bfd *output_bfd, struct bfd_link_info *info)
nh->other = STV_DEFAULT;
bfd_elf_link_record_dynamic_symbol (info, nh);
hppa_info->data_hash_entry = nh;
+ hppa_info->root.has_local_dynsyms = true;
}
}
}