| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
(copy_data_segment): Also copy __program_vars section.
(copy_dyld_info) [LC_DYLD_INFO]: New function.
(dump_it) [LC_DYLD_INFO]: Use it.
|
| |
|
|
|
|
| |
* unexmacosx.c (unexec_free): Ignore a NULL argument.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
reloc_base.
(copy_dysymtab): Compute relocation base here.
(rebase_reloc_address) [__ppc64__]: New function.
(copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
changed.
|
|
|
|
| |
(unrelocate) [_LP64]: Set relocation base to address of data segment.
|
|
|
|
|
| |
Don't assume regions are aligned to page boundary.
(print_load_command_name): Add LC_UUID if defined.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(region_list_head, region_list_tail, lca, nlc, infile_lc_highest_addr)
(text_seg_lowest_offset, mh, curr_header_offset, infd, outfd)
(emacs_zone, data_segment_old_fileoff, data_segment_scp)
(num_unexec_regions, unexec_regions): Make variables static.
(print_regions, find_emacs_zone_regions): Make static.
(unexec_region_info): New typedef.
(unexec_regions): Change type from vm_range_t[] to unexec_region_info[].
All uses changed.
(unexec_regions_recorder): Subtract size of trailing null pages from
filesize. Show filesize.
(unexec_regions_merge): Don't merge if null pages of preceding region
is not too small. Use long format in printf.
(copy_segment, copy_data_segment): Show filesize.
(copy_data_segment): Write filesize bytes of region data. Adjust
filesize in segment command accordingly.
(dump_it): Use long format in printf.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* unexmacosx.c (mach_header, segment_command, vm_region, section)
[_LP64]: New defines.
(VM_REGION_BASIC_INFO_COUNT, VM_REGION_BASIC_INFO, LC_SEGMENT)
(MH_MAGIC) [_LP64]: Redefine.
(delta): Remove variable.
(curr_file_offset, pagesize): New variables.
(ROUNDUP_TO_PAGE_BOUNDARY): New macro.
(data_segment_old_fileoff): Initialize explicitly.
(print_region, unexec_regions_recorder, print_load_command_name)
(copy_segment, copy_data_segment): Use long format in printf.
(MAX_UNEXEC_REGIONS): Increase to 400.
(unexec_regions_recorder): Don't warn too many regions here.
(find_emacs_zone_regions): Warn too many regions here.
(print_load_command_name) [_LP64]: Show correct load command name.
(copy_segment, copy_data_segment): Use variable `curr_file_offset'.
Show starting virtual memory address. Don't show ending file offset.
(copy_symtab, copy_dysymtab, copy_twolevelhints): New argument DELTA.
(dump_it): Use new local variable `linkedit_delta' and pass to them.
Error if trying to handle multiple DATA segments.
(unexec): Initialize variable `pagesize'.
|
| |
|
|
|
|
|
|
| |
(malloc, realloc, free): Add undefs.
(read_load_commands): Remove unused variable `n' and `j'.
(copy_data_segment): Remove unused variable `r'.
|
| |
|
|
|
|
|
| |
(copy_data_segment): Clear uninitialized local variables in
statically linked libraries.
|
| |
|
| |
|
|
|
|
| |
used by gcc4 on intel mac.
|
| |
|
|
|
|
|
|
|
|
|
| |
(MACOSX_MALLOC_MULT16): New define.
[MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
ptr is in unexec regions by checking it is multiple of 16.
(unexec_malloc_header_t): New typedef.
(unexec_malloc, unexec_realloc, unexec_free): Store and use
allocated size information in unexec_malloc_header.
|
|
|
|
|
|
|
|
| |
macterm.c (mac_check_for_quit_char): Remove warning for using
NULL where 0 should be used
unexmacosx.c: Use malloc/malloc.h on Tiger instead of
objc/malloc.h
mac.c: Include time.h for Tiger compatibility
|
|
|
|
| |
to prevent overwriting during unexec.
|
|
|
|
| |
in Mac OS X without the need to use static X11 libraries.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
to be redone and allow the executable to be stripped.
|
|
|
|
|
| |
space instead of using possibly invalid emacs_zone pointers. This fixes
the binary incompatibility problems caused by updates to libSystem.B
|
|
lisp/ChangeLog, and src/ChangeLog for list of changes.
|