diff options
author | Tristan Gingold <gingold@adacore.com> | 2011-12-15 11:01:14 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2011-12-15 11:01:14 +0000 |
commit | dff55db0d28380140e3702f6495498507b2ce0d7 (patch) | |
tree | 5ef20df5918c1e4dacf62903ec047a8d1c13bd03 /bfd/mach-o.h | |
parent | 0c9ef0f001e727226aae6a0dd3963dd81998e2e8 (diff) | |
download | gdb-dff55db0d28380140e3702f6495498507b2ce0d7.zip gdb-dff55db0d28380140e3702f6495498507b2ce0d7.tar.gz gdb-dff55db0d28380140e3702f6495498507b2ce0d7.tar.bz2 |
2011-12-15 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
* mach-o.c (bfd_mach_o_canonicalize_reloc): Update relocation
table only when there isn't the cahce.
(bfd_mach_o_get_dynamic_reloc_upper_bound): Need one more space
for a pointer for the watchdog.
(bfd_mach_o_canonicalize_dynamic_reloc): Utilize cache like
bfd_mach_o_canonicalize_reloc.
(bfd_mach_o_close_and_cleanup): Call bfd_mach_o_free_cached_info.
(bfd_mach_o_free_cached_info): Free up cache data.
* mach-o.h (reloc_cache): A place to store cache of dynamic relocs.
(bfd_mach_o_free_cached_info): Add declaration.
Diffstat (limited to 'bfd/mach-o.h')
-rw-r--r-- | bfd/mach-o.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/mach-o.h b/bfd/mach-o.h index e22b41a..23c3e1c 100644 --- a/bfd/mach-o.h +++ b/bfd/mach-o.h @@ -519,6 +519,9 @@ typedef struct mach_o_data_struct /* A place to stash dwarf2 info for this bfd. */ void *dwarf2_find_line_info; + + /* Cache of dynamic relocs. */ + arelent *dyn_reloc_cache; } bfd_mach_o_data_struct; @@ -590,6 +593,7 @@ bfd_boolean bfd_mach_o_find_nearest_line (bfd *, asection *, asymbol **, bfd_vma, const char **, const char **, unsigned int *); bfd_boolean bfd_mach_o_close_and_cleanup (bfd *); +bfd_boolean bfd_mach_o_free_cached_info (bfd *); unsigned int bfd_mach_o_section_get_nbr_indirect (bfd *, bfd_mach_o_section *); unsigned int bfd_mach_o_section_get_entry_size (bfd *, bfd_mach_o_section *); |