diff options
author | Roland McGrath <roland@gnu.org> | 2007-07-13 10:44:12 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2007-07-13 10:44:12 +0000 |
commit | 72d1985fdc740d87c21aa711090844d9a45ba5dd (patch) | |
tree | 04c8a7e58f20eaee0f5b01ef18cdb9aa313a7445 /bfd/elf-bfd.h | |
parent | f40c0308f603da21121b5bbe940f0ab87a90f068 (diff) | |
download | binutils-redhat-72d1985fdc740d87c21aa711090844d9a45ba5dd.tar.gz |
2007-07-13 Roland McGrath <roland@redhat.com>
* elf-bfd.h (struct elf_obj_tdata): Revert last change.
Add after_write_object_contents, after_write_object_contents_info.
* elf.c (_bfd_elf_write_object_contents): Revert last change.
Instead, call after_write_object_contents if set.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r-- | bfd/elf-bfd.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 7e3592ee4f..572e89b3d5 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -1469,9 +1469,9 @@ struct elf_obj_tdata obj_attribute known_obj_attributes[2][NUM_KNOWN_OBJ_ATTRIBUTES]; obj_attribute_list *other_obj_attributes[2]; - /* The .note.gnu.build-id section and --build-id option setting, or NULL. */ - char *emit_note_gnu_build_id; - asection *note_gnu_build_id_sec; + /* Called at the end of _bfd_elf_write_object_contents if not NULL. */ + bfd_boolean (*after_write_object_contents) (bfd *); + void *after_write_object_contents_info; }; #define elf_tdata(bfd) ((bfd) -> tdata.elf_obj_data) @@ -2046,9 +2046,6 @@ extern int _bfd_elf_obj_attrs_arg_type (bfd *, int, int); extern void _bfd_elf_parse_attributes (bfd *, Elf_Internal_Shdr *); extern bfd_boolean _bfd_elf_merge_object_attributes (bfd *, bfd *); -extern bfd_size_type _bfd_id_note_section_size - (bfd *abfd, struct bfd_link_info *link_info); - /* Large common section. */ extern asection _bfd_elf_large_com_section; |