/[emacs]/emacs/src/unexaix.c
ViewVC logotype

Diff of /emacs/src/unexaix.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.18 by gerd, Tue Nov 23 17:22:03 1999 UTC revision 1.18.20.1 by miles, Fri Apr 4 06:21:03 2003 UTC
# Line 175  int unexec (char *new_name, char *a_name Line 175  int unexec (char *new_name, char *a_name
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);
# Line 358  make_hdr (int new, int a_out, Line 358  make_hdr (int new, int a_out,
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    }    }
# Line 413  make_hdr (int new, int a_out, Line 413  make_hdr (int new, int a_out,
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   */   */
# Line 589  unrelocate_symbols (int new, int a_out, Line 589  unrelocate_symbols (int new, int a_out,
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

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.18.20.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26