diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-04-27 09:07:23 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-04-27 09:07:34 -0700 |
commit | fba37edd96c8dc65a63bd5b4fef5366de45b165a (patch) | |
tree | 5aef42af5b2094e09ed33f93cf33c90a3c160489 /bfd/elf-bfd.h | |
parent | 1f78f649e868979d36490d7c2ea0b3d41abc5ec6 (diff) | |
download | gdb-fba37edd96c8dc65a63bd5b4fef5366de45b165a.zip gdb-fba37edd96c8dc65a63bd5b4fef5366de45b165a.tar.gz gdb-fba37edd96c8dc65a63bd5b4fef5366de45b165a.tar.bz2 |
Change _bfd_elf_link_setup_gnu_properties to bfd *
Change setup_gnu_properties to return the first relocatable ELF input
with GNU properties so that a backend can make decision based on GNU
properties.
* elf-bfd.h (elf_backend_data): Change setup_gnu_properties
to return bfd *.
(_bfd_elf_link_setup_gnu_properties): Return bfd *.
* elf-properties.c (_bfd_elf_link_setup_gnu_properties): Return
the first relocatable ELF input with GNU properties.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r-- | bfd/elf-bfd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 79f87b2..4110ace 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -1441,7 +1441,7 @@ struct elf_backend_data elf_property *); /* Set up GNU properties. */ - void (*setup_gnu_properties) (struct bfd_link_info *); + bfd *(*setup_gnu_properties) (struct bfd_link_info *); /* Encoding used for compact EH tables. */ int (*compact_eh_encoding) (struct bfd_link_info *); @@ -2607,7 +2607,7 @@ extern bfd_boolean _bfd_elf_parse_gnu_properties (bfd *, Elf_Internal_Note *); extern elf_property * _bfd_elf_get_property (bfd *, unsigned int, unsigned int); -extern void _bfd_elf_link_setup_gnu_properties +extern bfd *_bfd_elf_link_setup_gnu_properties (struct bfd_link_info *); /* The linker may need to keep track of the number of relocs that it |