summaryrefslogtreecommitdiff
path: root/src/unexmacosx.c
Commit message (Collapse)AuthorAgeFilesLines
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* (print_load_command_name) [LC_DYLD_INFO]: Add casesYAMAMOTO Mitsuharu2009-08-281-0/+45
| | | | | | | 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.
* Add 2009 to copyright years.Glenn Morris2009-01-081-1/+1
|
* make unexec_free handle NULL the same way free doesJim Meyering2008-06-121-0/+2
| | | | * unexmacosx.c (unexec_free): Ignore a NULL argument.
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-141-6/+4
|
* Add 2008 to copyright years.Glenn Morris2008-01-081-1/+1
|
* (unrelocate): New argument BASE. Use it instead ofYAMAMOTO Mitsuharu2007-11-271-18/+86
| | | | | | | | 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.
* (copy_data_segment): Also copy __gcc_except_tab and __objc_* sections.YAMAMOTO Mitsuharu2007-11-241-6/+23
| | | | (unrelocate) [_LP64]: Set relocation base to address of data segment.
* (unexec_regions_recorder, unexec_regions_merge):YAMAMOTO Mitsuharu2007-10-301-8/+30
| | | | | Don't assume regions are aligned to page boundary. (print_load_command_name): Add LC_UUID if defined.
* Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
|
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* (malloc_cookie): Remove unused variable.YAMAMOTO Mitsuharu2006-11-051-57/+76
| | | | | | | | | | | | | | | | | | | (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.
* 2006-11-02 Nozomu Ando <nand@mac.com>YAMAMOTO Mitsuharu2006-11-021-43/+75
| | | | | | | | | | | | | | | | | | | | | | | * 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'.
* (unexec): Error if trying unexec from dumped executable.YAMAMOTO Mitsuharu2006-05-011-0/+3
|
* Include config.h before using HAVE_MALLOC_MALLOC_H.YAMAMOTO Mitsuharu2006-04-121-3/+6
| | | | | | (malloc, realloc, free): Add undefs. (read_load_commands): Remove unused variable `n' and `j'. (copy_data_segment): Remove unused variable `r'.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+2
|
* (unexec_write_zero): New function.YAMAMOTO Mitsuharu2005-11-091-9/+59
| | | | | (copy_data_segment): Clear uninitialized local variables in statically linked libraries.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-071-1/+1
|
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 sectionSteven Tamm2005-06-091-0/+1
| | | | used by gcc4 on intel mac.
* (unexec_realloc): Move declarations before statements.Andreas Schwab2005-05-161-2/+2
|
* Include assert.h.YAMAMOTO Mitsuharu2005-05-131-19/+77
| | | | | | | | | (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.
* config.in (HAVE_MALLOC_MALLOC_H): RegenerateSteven Tamm2004-10-081-0/+5
| | | | | | | | 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
* unexecmacos.x (unexec_copy): Do not copy more than was requested (count)Steven Tamm2004-01-281-1/+3
| | | | to prevent overwriting during unexec.
* These are Nozomu Ando's changes to build Emacs to run under X WindowAndrew Choi2003-10-311-4/+75
| | | | in Mac OS X without the need to use static X11 libraries.
* Add arch taglinesMiles Bader2003-09-011-0/+3
|
* unexmacosx.c: Sort and merge unexec regions before dumping them.Andrew Choi2003-07-221-1/+42
|
* unexmacosx.c (copy_data_segment): Also copy __cfstring section.Andrew Choi2003-02-181-1/+2
|
* Trailing whitespace deleted.Juanma Barranquero2003-02-041-13/+13
|
* unexmacosx.c: Now corrects the offset in two hints table to allow prebindingSteven Tamm2002-12-011-0/+22
| | | | to be redone and allow the executable to be stripped.
* Use malloc_default_zone to determine the size of pointers alloced in unexecSteven Tamm2002-11-241-1/+1
| | | | | space instead of using possibly invalid emacs_zone pointers. This fixes the binary incompatibility problems caused by updates to libSystem.B
* Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,Andrew Choi2002-04-261-0/+914
lisp/ChangeLog, and src/ChangeLog for list of changes.