diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2003-02-04 14:56:31 +0000 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2003-02-04 14:56:31 +0000 |
commit | 177c0ea74342272645959b82cf219faa0b3dba16 (patch) | |
tree | 44e22b210a9904eab25a66d12e708804b671df75 /src/unexmacosx.c | |
parent | db95369be096960245dd38678f68464627698678 (diff) | |
download | emacs-177c0ea74342272645959b82cf219faa0b3dba16.tar.gz |
Trailing whitespace deleted.
Diffstat (limited to 'src/unexmacosx.c')
-rw-r--r-- | src/unexmacosx.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/unexmacosx.c b/src/unexmacosx.c index 03aafd2912a..4f1c29b1ef8 100644 --- a/src/unexmacosx.c +++ b/src/unexmacosx.c @@ -276,7 +276,7 @@ print_regions () if (object_name != MACH_PORT_NULL) mach_port_deallocate (target_task, object_name); - + address += size; } } @@ -329,15 +329,15 @@ build_region_list () else { r = (struct region_t *) malloc (sizeof (struct region_t)); - + if (!r) unexec_error ("cannot allocate region structure"); - + r->address = address; r->size = size; r->protection = info.protection; r->max_protection = info.max_protection; - + r->next = 0; if (region_list_head == 0) { @@ -349,13 +349,13 @@ build_region_list () region_list_tail->next = r; region_list_tail = r; } - + /* Deallocate (unused) object name returned by vm_region. */ if (object_name != MACH_PORT_NULL) mach_port_deallocate (target_task, object_name); } - + address += size; } @@ -498,7 +498,7 @@ read_load_commands () nlc = mh.ncmds; lca = (struct load_command **) malloc (nlc * sizeof (struct load_command *)); - + for (i = 0; i < nlc; i++) { struct load_command lc; @@ -513,7 +513,7 @@ read_load_commands () if (lc.cmd == LC_SEGMENT) { struct segment_command *scp = (struct segment_command *) lca[i]; - + if (scp->vmaddr + scp->vmsize > infile_lc_highest_addr) infile_lc_highest_addr = scp->vmaddr + scp->vmsize; @@ -647,7 +647,7 @@ copy_data_segment (struct load_command *lc) } else unexec_error ("unrecognized section name in __DATA segment"); - + printf (" section %-16.16s at %#8x - %#8x (sz: %#8x)\n", sectp->sectname, sectp->offset, sectp->offset + sectp->size, sectp->size); @@ -675,7 +675,7 @@ copy_data_segment (struct load_command *lc) for (j = 0; j < num_unexec_regions; j++) { struct segment_command sc; - + sc.cmd = LC_SEGMENT; sc.cmdsize = sizeof (struct segment_command); strncpy (sc.segname, SEG_DATA, 16); @@ -687,7 +687,7 @@ copy_data_segment (struct load_command *lc) sc.initprot = VM_PROT_READ | VM_PROT_WRITE; sc.nsects = 0; sc.flags = 0; - + printf ("Writing segment %-16.16s at %#8x - %#8x (sz: %#8x)\n", sc.segname, sc.fileoff, sc.fileoff + sc.filesize, sc.filesize); @@ -696,7 +696,7 @@ copy_data_segment (struct load_command *lc) unexec_error ("cannot write new __DATA segment"); delta += sc.filesize; file_offset += sc.filesize; - + if (!unexec_write (curr_header_offset, &sc, sc.cmdsize)) unexec_error ("cannot write new __DATA segment's header"); curr_header_offset += sc.cmdsize; @@ -850,7 +850,7 @@ unexec (char *outfile, char *infile, void *start_data, void *start_bss, { unexec_error ("cannot open input file `%s'", infile); } - + outfd = open (outfile, O_WRONLY | O_TRUNC | O_CREAT, 0755); if (outfd < 0) { |