2011-12-15 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
commit61feac9f872d1fb0f4d4de634c00a2e57348ef5e
authorTristan Gingold <gingold@adacore.com>
Thu, 15 Dec 2011 11:01:14 +0000 (15 11:01 +0000)
committerTristan Gingold <gingold@adacore.com>
Thu, 15 Dec 2011 11:01:14 +0000 (15 11:01 +0000)
treeefc7a59f3a91c5f537e8cdeaf9a3ee1b98907e36
parent6645f998a7c3150839ca7053238ea77aa13fe836
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.
bfd/ChangeLog
bfd/mach-o.c
bfd/mach-o.h