]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
bfd/ELF: _bfd_elf_obj_attrs_arg_type() is exposed to gas
authorJan Beulich <jbeulich@suse.com>
Fri, 7 Nov 2025 13:59:16 +0000 (14:59 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Nov 2025 13:59:16 +0000 (14:59 +0100)
As a non-private function, it shouldn't have a "_bfd_" prefix, but merely
a "bfd_" one.

bfd/elf-attrs.c
bfd/elf-bfd.h
gas/config/obj-elf.c

index bc653d780de031b8eb0597f3b6d8569daefaa03d..56cff60d5b72dfc62b4508cc271a40d97d7902ee 100644 (file)
@@ -309,7 +309,7 @@ bfd_elf_add_obj_attr_int (bfd *abfd, int vendor, unsigned int tag, unsigned int
   attr = elf_new_obj_attr (abfd, vendor, tag);
   if (attr != NULL)
     {
-      attr->type = _bfd_elf_obj_attrs_arg_type (abfd, vendor, tag);
+      attr->type = bfd_elf_obj_attrs_arg_type (abfd, vendor, tag);
       attr->i = i;
     }
   return attr;
@@ -352,7 +352,7 @@ elf_add_obj_attr_string (bfd *abfd, int vendor, unsigned int tag,
   attr = elf_new_obj_attr (abfd, vendor, tag);
   if (attr != NULL)
     {
-      attr->type = _bfd_elf_obj_attrs_arg_type (abfd, vendor, tag);
+      attr->type = bfd_elf_obj_attrs_arg_type (abfd, vendor, tag);
       attr->s = elf_attr_strdup (abfd, s, end);
       if (attr->s == NULL)
        return NULL;
@@ -377,7 +377,7 @@ elf_add_obj_attr_int_string (bfd *abfd, int vendor, unsigned int tag,
   attr = elf_new_obj_attr (abfd, vendor, tag);
   if (attr != NULL)
     {
-      attr->type = _bfd_elf_obj_attrs_arg_type (abfd, vendor, tag);
+      attr->type = bfd_elf_obj_attrs_arg_type (abfd, vendor, tag);
       attr->i = i;
       attr->s = elf_attr_strdup (abfd, s, end);
       if (attr->s == NULL)
@@ -474,7 +474,7 @@ gnu_obj_attrs_arg_type (unsigned int tag)
 
 /* Determine what arguments an attribute tag takes.  */
 int
-_bfd_elf_obj_attrs_arg_type (bfd *abfd, int vendor, unsigned int tag)
+bfd_elf_obj_attrs_arg_type (bfd *abfd, int vendor, unsigned int tag)
 {
   switch (vendor)
     {
@@ -565,7 +565,7 @@ bfd_elf_parse_attr_section_v1 (bfd *abfd, bfd_byte *p, bfd_byte *p_end)
                  bool ok = false;
 
                  tag = _bfd_safe_read_leb128 (abfd, &p, false, end);
-                 type = _bfd_elf_obj_attrs_arg_type (abfd, vendor, tag);
+                 type = bfd_elf_obj_attrs_arg_type (abfd, vendor, tag);
                  switch (type & (ATTR_TYPE_FLAG_INT_VAL | ATTR_TYPE_FLAG_STR_VAL))
                    {
                    case ATTR_TYPE_FLAG_INT_VAL | ATTR_TYPE_FLAG_STR_VAL:
index 8f5fb764324a0e23e94633d4ba3dd7c0a6a0b6a1..daad203190293569506c15f32923b713d58e564b 100644 (file)
@@ -3122,7 +3122,7 @@ extern char *_bfd_elf_attr_strdup
   (bfd *, const char *) ATTRIBUTE_HIDDEN;
 extern void _bfd_elf_copy_obj_attributes
   (bfd *, bfd *) ATTRIBUTE_HIDDEN;
-extern int _bfd_elf_obj_attrs_arg_type
+extern int bfd_elf_obj_attrs_arg_type
   (bfd *, int, unsigned int);
 extern void _bfd_elf_parse_attributes
   (bfd *, Elf_Internal_Shdr *) ATTRIBUTE_HIDDEN;
index ccf020f5a8406df92e5b6187b7d434447d8bba6e..cc1f485ae5415047bc2d9a569ed6833d99b55a9e 100644 (file)
@@ -2193,7 +2193,7 @@ obj_elf_vendor_attribute (int vendor)
       free (name);
     }
 
-  type = _bfd_elf_obj_attrs_arg_type (stdoutput, vendor, tag);
+  type = bfd_elf_obj_attrs_arg_type (stdoutput, vendor, tag);
 
   if (skip_past_comma (&input_line_pointer) == -1)
     goto bad;