mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-04-12 14:33:06 +08:00
LoongArch: Add elfNN_loongarch_mkobject to initialize LoongArch tdata
LoongArch: Add elfNN_loongarch_mkobject to initialize LoongArch tdata. (cherry picked from commit 28489a70d4660d67e71d75e82286a6e1a7003b93)
This commit is contained in:
parent
9069b0257b
commit
c40337b178
@ -84,6 +84,14 @@ struct _bfd_loongarch_elf_obj_tdata
|
||||
&& elf_tdata (bfd) != NULL \
|
||||
&& elf_object_id (bfd) == LARCH_ELF_DATA)
|
||||
|
||||
static bool
|
||||
elfNN_loongarch_object (bfd *abfd)
|
||||
{
|
||||
return bfd_elf_allocate_object (abfd,
|
||||
sizeof (struct _bfd_loongarch_elf_obj_tdata),
|
||||
LARCH_ELF_DATA);
|
||||
}
|
||||
|
||||
struct relr_entry
|
||||
{
|
||||
asection *sec;
|
||||
@ -6147,6 +6155,8 @@ elf_loongarch64_hash_symbol (struct elf_link_hash_entry *h)
|
||||
#define bfd_elfNN_bfd_reloc_name_lookup loongarch_reloc_name_lookup
|
||||
#define elf_info_to_howto_rel NULL /* Fall through to elf_info_to_howto. */
|
||||
#define elf_info_to_howto loongarch_info_to_howto_rela
|
||||
#define bfd_elfNN_mkobject \
|
||||
elfNN_loongarch_object
|
||||
#define bfd_elfNN_bfd_merge_private_bfd_data \
|
||||
elfNN_loongarch_merge_private_bfd_data
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user