Projects
openEuler:24.03:SP1:Everything
binutils
_service:tar_scm:LoongArch-Add-elfNN_loongarch_...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:LoongArch-Add-elfNN_loongarch_mkobject-to-initialize.patch of Package binutils
From 5ba625b50145a8234129ab6b4a58a18e530ae9d7 Mon Sep 17 00:00:00 2001 From: Xin Wang <yw987194828@gmail.com> Date: Fri, 6 Sep 2024 09:00:12 +0800 Subject: [PATCH 114/123] LoongArch: Add elfNN_loongarch_mkobject to initialize LoongArch tdata LoongArch: Add elfNN_loongarch_mkobject to initialize LoongArch tdata. --- bfd/elfnn-loongarch.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bfd/elfnn-loongarch.c b/bfd/elfnn-loongarch.c index 09a9513b..b6d7d1e8 100644 --- a/bfd/elfnn-loongarch.c +++ b/bfd/elfnn-loongarch.c @@ -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; @@ -6158,6 +6166,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 -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2