Changeset 2975


Ignore:
Timestamp:
Feb 15, 2007, 2:57:41 AM (18 years ago)
Author:
bird
Message:

fixed bug in scattered fixups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/kLdrModMachO.c

    r2974 r2975  
    20512051            }
    20522052            if (Fixup.s.r_pcrel)
    2053                 Value += Fixup.s.r_address;
    2054 
    2055             /* Calc the section number from the r_value and adjust the value. */
     2053                SymAddr += Fixup.s.r_address;
     2054            Value = Fixup.s.r_value;
     2055            SymAddr -= Value;                   /* (-> addend only) */
     2056
     2057            /* Calc the section number from the r_value and adjust the value in case the section moved. */
    20562058            pSymSect = NULL;
    2057             Value = Fixup.s.r_value;
    20582059            for (iSymSect = 0; iSymSect < pModMachO->cSections; iSymSect++)
    20592060            {
Note: See TracChangeset for help on using the changeset viewer.