]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
bfd: rename old references to build attributes
authorMatthieu Longo <matthieu.longo@arm.com>
Tue, 11 Nov 2025 10:50:23 +0000 (10:50 +0000)
committerMatthieu Longo <matthieu.longo@arm.com>
Mon, 24 Nov 2025 10:14:35 +0000 (10:14 +0000)
A previous refactoring patch [1] introduced "build_attributes" in the
functions naming. However this naming is specific to the AArch64 Build
Attributes specification, and should be replaced by "object_attributes"
going forward.

[1]: 011e50143f0ec1be271f93facb56def9394947d2

bfd/elf-attrs.c
bfd/elf-bfd.h
bfd/elflink.c

index 56cff60d5b72dfc62b4508cc271a40d97d7902ee..c9d2d5dbae53251df0a04cfe8cef6a114f51fc6d 100644 (file)
@@ -818,10 +818,10 @@ _bfd_elf_merge_unknown_attribute_list (bfd *ibfd, bfd *obfd)
   return result;
 }
 
-bool _bfd_elf_write_section_build_attributes (bfd *abfd,
-                                             struct bfd_link_info *info ATTRIBUTE_UNUSED)
+bool _bfd_elf_write_section_object_attributes
+  (bfd *abfd, struct bfd_link_info *info ATTRIBUTE_UNUSED)
 {
-  asection *sec = elf_obj_build_attributes (abfd);
+  asection *sec = elf_obj_object_attributes (abfd);
 
   if (sec == NULL)
     return true;
index 73c5a5a0ec635aa24468516eb6c52517d5767cba..b8daceaff7f6d8c237d317759663cdd5f2af17f3 100644 (file)
@@ -2039,8 +2039,8 @@ struct output_elf_obj_tdata
      created.  */
   asection *sframe;
 
-  /* Holds the build attributes section if it exists.  */
-  asection *obj_build_attributes;
+  /* Holds the object attributes section if it exists.  */
+  asection *obj_object_attributes;
 
   /* Used to determine if the e_flags field has been initialized */
   bool flags_init;
@@ -2229,8 +2229,8 @@ struct elf_obj_tdata
 #define elf_next_file_pos(bfd) (elf_tdata(bfd) -> o->next_file_pos)
 #define elf_stack_flags(bfd)   (elf_tdata(bfd) -> o->stack_flags)
 #define elf_sframe(bfd)                (elf_tdata(bfd) -> o->sframe)
-#define elf_obj_build_attributes(bfd) \
-                               (elf_tdata(bfd) -> o->obj_build_attributes)
+#define elf_obj_object_attributes(bfd) \
+                               (elf_tdata(bfd) -> o->obj_object_attributes)
 #define elf_shstrtab(bfd)      (elf_tdata(bfd) -> o->strtab_ptr)
 #define elf_onesymtab(bfd)     (elf_tdata(bfd) -> symtab_section)
 #define elf_symtab_shndx_list(bfd)     (elf_tdata(bfd) -> symtab_shndx_list)
index ec3ad9735fe89347359d3ae988e631a725549f12..b72faff7fd8528c264f7c57764caf4d73b11f777 100644 (file)
@@ -12715,7 +12715,7 @@ _bfd_elf_final_link (bfd *abfd, struct bfd_link_info *info)
             _bfd_elf_compute_section_file_positions.  */
          bfd_set_section_size (o, attr_size);
          if (attr_size > 0)
-           elf_obj_build_attributes (abfd) = o;
+           elf_obj_object_attributes (abfd) = o;
          else
            remove_section = true;
        }
@@ -13830,7 +13830,7 @@ _bfd_elf_final_link (bfd *abfd, struct bfd_link_info *info)
   if (! _bfd_elf_write_section_sframe (abfd, info))
     goto error_return;
 
-  if (! _bfd_elf_write_section_build_attributes (abfd, info))
+  if (! _bfd_elf_write_section_object_attributes (abfd, info))
     goto error_ret2;
 
   if (info->callbacks->emit_ctf)