summaryrefslogtreecommitdiffstats
path: root/bfd/elf-bfd.h
diff options
context:
space:
mode:
authorAndrew Stubbs <andrew.stubbs@st.com>2009-01-19 12:14:05 +0000
committerAndrew Stubbs <andrew.stubbs@st.com>2009-01-19 12:14:05 +0000
commit5aa6ff7ca4d5209dece43cf89fa5750f5dcaa033 (patch)
treeaf1aaeae14e0dbe24962fe72cd800af96678760b /bfd/elf-bfd.h
parent3483fe2e0bd83ee8dba72f73c6a309cae2d75e7e (diff)
downloadppe42-binutils-5aa6ff7ca4d5209dece43cf89fa5750f5dcaa033.tar.gz
ppe42-binutils-5aa6ff7ca4d5209dece43cf89fa5750f5dcaa033.zip
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 c0d8c8a40e..35dc0180f8 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
OpenPOWER on IntegriCloud