aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-bfd.h
diff options
context:
space:
mode:
authormengqinggang <mengqinggang@loongson.cn>2024-05-29 14:50:39 +0800
committerliuzhensong <liuzhensong@loongson.cn>2024-06-04 19:47:20 +0800
commit5f4fa40e4def33ed428b2d72aeb2bf24b50a664e (patch)
treeb2302f426f3b27b97b27b957ee0dc00717af4c42 /bfd/elf-bfd.h
parentb472e4cfd63c551543b6a1653f3cff03162b7403 (diff)
downloadgdb-5f4fa40e4def33ed428b2d72aeb2bf24b50a664e.zip
gdb-5f4fa40e4def33ed428b2d72aeb2bf24b50a664e.tar.gz
gdb-5f4fa40e4def33ed428b2d72aeb2bf24b50a664e.tar.bz2
LoongArch: Make align symbol be in same section with alignment directive
R_LARCH_ALIGN (psABI v2.30) requires a symbol index. The symbol is only created at the first time to handle alignment directive. This means that all other sections may use this symbol. If the section of this symbol is discarded, there may be problems. Search it in its own section. Remove elf_backend_data.is_rela_normal() function added at commit daeda14191c. Co-authored-by: Jinyang He <hejinyang@loongson.cn> Reported-by: WANG Xuerui <git@xen0n.name> Link: https://lore.kernel.org/loongarch/2abbb633-a10e-71cc-a5e1-4d9e39074066@loongson.cn/T/#t
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r--bfd/elf-bfd.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 15a7156..45d36a7 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -1727,10 +1727,6 @@ struct elf_backend_data
backend relocate_section routine for relocatable linking. */
unsigned rela_normal : 1;
- /* Whether a relocation is rela_normal. Compared with rela_normal,
- is_rela_normal can set part of relocations to rela_normal. */
- bool (*is_rela_normal) (Elf_Internal_Rela *);
-
/* Set if DT_REL/DT_RELA/DT_RELSZ/DT_RELASZ should not include PLT
relocations. */
unsigned dtrel_excludes_plt : 1;