175 |
|| unrelocate_symbols (new, a_out, a_name, new_name) < 0) |
|| unrelocate_symbols (new, a_out, a_name, new_name) < 0) |
176 |
{ |
{ |
177 |
close (new); |
close (new); |
178 |
return -1; |
return -1; |
179 |
} |
} |
180 |
|
|
181 |
close (new); |
close (new); |
358 |
s->s_scnptr += bias; |
s->s_scnptr += bias; |
359 |
ptr = s->s_scnptr; |
ptr = s->s_scnptr; |
360 |
} |
} |
361 |
|
|
362 |
ptr = ptr + s->s_size; |
ptr = ptr + s->s_size; |
363 |
} |
} |
364 |
} |
} |
413 |
} |
} |
414 |
|
|
415 |
/* **************************************************************** |
/* **************************************************************** |
416 |
|
|
417 |
* |
* |
418 |
* Copy the text and data segments from memory to the new a.out |
* Copy the text and data segments from memory to the new a.out |
419 |
*/ |
*/ |
589 |
#ifndef ALIGN_DATA_RELOC |
#ifndef ALIGN_DATA_RELOC |
590 |
ulong d_reloc = (ulong) &_data - f_ohdr.data_start; |
ulong d_reloc = (ulong) &_data - f_ohdr.data_start; |
591 |
#else |
#else |
592 |
/* This worked (and was needed) before AIX 4.2. |
/* This worked (and was needed) before AIX 4.2. |
593 |
I have no idea why. -- Mike */ |
I have no idea why. -- Mike */ |
594 |
ulong d_reloc = (ulong) &_data - ALIGN(f_ohdr.data_start, 2); |
ulong d_reloc = (ulong) &_data - ALIGN(f_ohdr.data_start, 2); |
595 |
#endif |
#endif |