Commit f7b999e3 authored by wolfgang's avatar wolfgang
Browse files

[project @ 2004-09-29 16:51:16 by wolfgang]

Mac OS X:
Fix a serious bug in the linker's handling of Mach-O's
GENERIC_RELOC_VANILLA relocations.

MERGE TO STABLE
parent 2c68b1af
......@@ -3372,7 +3372,12 @@ static int relocateSection(
// Step 1: Figure out what the relocated value should be
if(scat->r_type == GENERIC_RELOC_VANILLA)
{
word = scat->r_value + sect->offset + ((long) image);
word = *wordPtr + (unsigned long) relocateAddress(
oc,
nSections,
sections,
scat->r_value)
- scat->r_value;
}
else if(scat->r_type == PPC_RELOC_SECTDIFF
|| scat->r_type == PPC_RELOC_LO16_SECTDIFF
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment