summaryrefslogtreecommitdiff
path: root/bfd/elf-bfd.h
diff options
context:
space:
mode:
authorAndrew Stubbs <andrew.stubbs@st.com>2009-01-19 12:14:04 +0000
committerAndrew Stubbs <andrew.stubbs@st.com>2009-01-19 12:14:04 +0000
commit1602efbcae70b4e40b4c8e3e0dac82a0dee91acf (patch)
tree6297a22bb5669d5450fe8e71da962e30708000bb /bfd/elf-bfd.h
parentd28c2e65ddf50a889532bf15e5ec570018373292 (diff)
downloadgdb-1602efbcae70b4e40b4c8e3e0dac82a0dee91acf.tar.gz
2009-01-19 Andrew Stubbs <ams@codesourcery.com>
bfd/ * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering. * elf-bfd.h (elf_backend_data): Add obj_attrs_order. * elf32-arm.c (elf32_arm_obj_attrs_order): New function. (elf_backend_obj_attrs_order): New define. * elfxx-target.h (elf_backend_obj_attrs_order): New define. (elfNN_bed): Add elf_backend_obj_attrs_order. gas/testsuite/ * gas/arm/attr-order.d: New file. * gas/arm/attr-order.s: New file.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r--bfd/elf-bfd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index c0d8c8a40e5..35dc0180f86 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -1167,6 +1167,12 @@ struct elf_backend_data
/* The section type to use for an attributes section. */
unsigned int obj_attrs_section_type;
+ /* This function determines the order in which any attributes are written.
+ It must be defined for input in the range 4..NUM_KNOWN_OBJ_ATTRIBUTES-1
+ (this range is used in order to make unity easy). The returned value is
+ the actual tag number to place in the input position. */
+ int (*obj_attrs_order) (int);
+
/* This is TRUE if the linker should act like collect and gather
global constructors and destructors by name. This is TRUE for
MIPS ELF because the Irix 5 tools can not handle the .init