• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/dyld-353.2.1/launch-cache/

Lines Matching refs:reloc

40 #include <mach-o/reloc.h>
41 #include <mach-o/x86_64/reloc.h>
42 #include <mach-o/arm/reloc.h>
102 void doLocalRelocation(const macho_relocation_info<P>* reloc);
110 pint_t fOrignalVMRelocBaseAddress; // add reloc address to this to get original address reloc referred to
869 for (const macho_relocation_info<P>* reloc=relocsStart; reloc < relocsEnd; ++reloc) {
870 this->doLocalRelocation(reloc);
905 // split seg file need reloc base to be first writable segment
908 // get amount to adjust reloc address
922 for (macho_relocation_info<P>* reloc=relocsStart; reloc < relocsEnd; ++reloc) {
923 reloc->set_r_address(reloc->r_address()-relocAddressAdjust);
929 for (macho_relocation_info<P>* reloc=externRelocsStart; reloc < externRelocsEnd; ++reloc) {
930 reloc->set_r_address(reloc->r_address()-relocAddressAdjust);
938 // x86_64 already have reloc base of first writable segment
943 void Rebaser<x86_64>::doLocalRelocation(const macho_relocation_info<x86_64::P>* reloc)
945 if ( reloc->r_type() == X86_64_RELOC_UNSIGNED ) {
946 pint_t* addr = this->mappedAddressForRelocAddress(reloc->r_address());
956 void Rebaser<x86>::doLocalRelocation(const macho_relocation_info<P>* reloc)
958 if ( (reloc->r_address() & R_SCATTERED) == 0 ) {
959 if ( reloc->r_type() == GENERIC_RELOC_VANILLA ) {
960 pint_t* addr = this->mappedAddressForRelocAddress(reloc->r_address());
966 macho_scattered_relocation_info<P>* sreloc = (macho_scattered_relocation_info<P>*)reloc;
977 void Rebaser<A>::doLocalRelocation(const macho_relocation_info<P>* reloc)
979 if ( (reloc->r_address() & R_SCATTERED) == 0 ) {
980 if ( reloc->r_type() == GENERIC_RELOC_VANILLA ) {
981 pint_t* addr = this->mappedAddressForRelocAddress(reloc->r_address());
997 // reloc addresses are from the start of the first writable segment
1008 // reloc addresses are from the start of the mapped file (base address)
1018 // reloc addresses are always based from the start of the first writable segment