diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-09-01 14:51:58 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-09-01 14:51:58 -0700 |
commit | 4f501a245f67d0b43f245b09515c87bfeec983ec (patch) | |
tree | 640bd84069dbeddffb62a05436d26692808c0774 /bfd/elfxx-x86.h | |
parent | eeb2f20a764bee3a6a1edb9872467d044aaad848 (diff) | |
download | gdb-4f501a245f67d0b43f245b09515c87bfeec983ec.zip gdb-4f501a245f67d0b43f245b09515c87bfeec983ec.tar.gz gdb-4f501a245f67d0b43f245b09515c87bfeec983ec.tar.bz2 |
x86: Add _bfd_x86_elf_gc_mark_hook
Since R_X86_64_GNU_VTINHERIT == R_386_GNU_VTINHERIT and
R_X86_64_GNU_VTENTRY == R_386_GNU_VTENTRY, we can share
_bfd_x86_elf_gc_mark_hook in elf32-i386.c and elf64-x86-64.c.
* elf32-i386.c (elf_i386_gc_mark_hook): Removed.
(elf_backend_gc_mark_hook): Likewise.
* elf64-x86-64.c (elf_x86_64_gc_mark_hook): Likewise.
(elf_backend_gc_mark_hook): Likewise.
* elfxx-x86.c (_bfd_x86_elf_gc_mark_hook): New function.
* elfxx-x86.h (_bfd_x86_elf_gc_mark_hook): New.
(elf_backend_gc_mark_hook): Likewise.
Diffstat (limited to 'bfd/elfxx-x86.h')
-rw-r--r-- | bfd/elfxx-x86.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/elfxx-x86.h b/bfd/elfxx-x86.h index 8f8fbea..edaab45 100644 --- a/bfd/elfxx-x86.h +++ b/bfd/elfxx-x86.h @@ -422,6 +422,10 @@ extern bfd_boolean _bfd_x86_elf_hash_symbol extern bfd_boolean _bfd_x86_elf_adjust_dynamic_symbol (struct bfd_link_info *, struct elf_link_hash_entry *); +extern asection * _bfd_x86_elf_gc_mark_hook + (asection *, struct bfd_link_info *, Elf_Internal_Rela *, + struct elf_link_hash_entry *, Elf_Internal_Sym *); + extern long _bfd_x86_elf_get_synthetic_symtab (bfd *, long, long, bfd_vma, struct elf_x86_plt [], asymbol **, asymbol **); @@ -460,6 +464,8 @@ extern bfd * _bfd_x86_elf_link_setup_gnu_properties _bfd_x86_elf_hash_symbol #define elf_backend_adjust_dynamic_symbol \ _bfd_x86_elf_adjust_dynamic_symbol +#define elf_backend_gc_mark_hook \ + _bfd_x86_elf_gc_mark_hook #define elf_backend_omit_section_dynsym \ ((bfd_boolean (*) (bfd *, struct bfd_link_info *, asection *)) bfd_true) #define elf_backend_parse_gnu_properties \ |