summaryrefslogtreecommitdiff
path: root/src/unexw32.c
Commit message (Collapse)AuthorAgeFilesLines
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-141-6/+5
|
* Add 2008 to copyright years.Glenn Morris2008-01-081-1/+1
|
* Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
|
* Update copyright for years from Emacs 21 to present (mainly addingGlenn Morris2007-01-141-2/+2
| | | | 2001).
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+2
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-071-1/+1
|
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* Update copyrighte years.Eli Zaretskii2005-06-101-1/+1
|
* (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argumentEli Zaretskii2005-06-101-20/+34
| | | | | | | `verbose'; print diagnostic messages only if it is non-zero. All callers changed to pass a zero value unless DEBUG_DUMP is defined in the environment. (copy_executable_and_dump_data): Print section names with %.8s.
* (RVA_TO_PTR): Moved here from w32heap.h.Eli Zaretskii2005-06-061-0/+3
|
* Add arch taglinesMiles Bader2003-09-011-0/+3
|
* (_start): Remove _fmode initialization.Jason Rumney2003-05-211-5/+0
|
* Trailing whitespace deleted.Juanma Barranquero2003-02-041-22/+22
|
* Change PUCHAR to PCHAR.Andrew Innes2000-08-221-19/+29
| | | | | | | | | | (PTR_TO_OFFSET): Cast ptr to unsigned char *. (relocate_offset): (get_section_info): (copy_executable_and_dump_data): Remove unnecessary static defs. (copy_executable_and_dump_data): Fix compile warnings. (unexec): Ignore old_name, and use the actual location of the current executable instead. Base new_name on this.
* (get_section_info) [_ALPHA_]: Force as much bss dataAndrew Innes1999-06-031-0/+4
| | | | as possible to be dumped, for safety.
* (get_section_info): Dump back the entire EMDATAAndrew Innes1999-05-021-6/+24
| | | | | section if we can put Emacs' initialized data in a separate section, otherwise use the my_begdata/my_edata method.
* (ROUND_UP_DST_AND_ZERO): New macro.Andrew Innes1999-01-311-6/+19
| | | | | (copy_executable_and_dump_data): Use it to ensure alignment slop is zeroed.
* Major rewrite to support cleaner method of dumping; aAndrew Innes1999-01-171-438/+470
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | static "bss" section is used for heap space during preload, and bss data is now written to the proper section area when dumping. (need_to_recreate_heap): Renamed to using_dynamic_heap. (heap_index_in_executable): Obsolete variable removed. (data_section): New variable. (data_start_va): Renamed to data_start. (data_start_file): Obsolete variable removed. (bss_section): (extra_bss_size): (bss_section_static): (bss_start_static): (bss_size_static): (extra_bss_size_static): (heap_section): New variables. (_start): Remove code based on old unexec method. Call init_heap to initialize sbrk heap. (close_file_data): Update size of file when closing, so that unexec doesn't have to work out exact size in advance. (get_bss_info_from_map_file): (get_section_size): Obsolete functions removed. (rva_to_section): Fix minor bug, and add a work-around for a bug in very old linkers. (offset_to_section): (relocate_offset): New functions. (OFFSET_TO_RVA): (RVA_TO_OFFSET): (RVA_TO_SECTION_OFFSET): (PTR_TO_RVA): (PTR_TO_OFFSET): (OFFSET_TO_PTR): New macros. (get_section_info): Modify to support new unexec method; determines address ranges in process that need dumping, and COFF sections where data will be dumped. Allows for static and global bss data to be in separate ranges. No longer relies on knowledge of section names. (copy_executable_and_dump_data_section): Renamed copy_executable_and_dump_data. Completely rewritten to copy executable section by section, so that raw data areas can be expanded to hold dumped data as necessary. Allows for bss data to be in same section as initialized data. Reduces size of static heap section to that used during preload. (dump_bss_and_heap): (w32_fatal_reload_error): (read_in_bss): (map_in_heap): Obsolete functions removed. (unexec): Rounds off preload heap to nearest page rather than virtual allocation unit. Modified to match other changes.
* (_start): Force system calls accessing unmounted devices to failAndrew Innes1998-12-281-0/+4
| | | | without prompting.
* (w32_fatal_reload_error): Update error message.Geoff Voelker1998-05-301-1/+4
|
* (my_begbss_static, my_endbss_static): Declare.Geoff Voelker1998-04-171-35/+63
| | | | | | | | (get_bss_info_from_map_file): Only define if SEPARATE_BSS_SECTION. (get_section_info): Use my_begbss_static, my_endbss_static to determine bounds of bss. (w32_fatal_reload_error): New function. (read_in_bss, map_in_heap): Invoke w32_fatal_reload_error upon error.
* (min, max): Define as macros.Karl Heuer1998-04-091-0/+5
|
* Include config.h and time.h.Geoff Voelker1997-09-031-63/+172
| | | | | | | | | | | | | | | | | | Declare extern data and functions. (file_data): Move definition from w32heap.c. (_start): Add debug hook for when profiling. Spoof executable name when using profilers. Invoke sbrk immediately when undumped. (unexec): Print error messages when input and output dump files cannot be opened. Reset header checksum. (open_input_file, open_output_file): Return status instead of aborting. (get_section_size): Handle different linkers. (find_section, rva_to_section): New functions. (get_section_info) [SEPARATE_BSS_SECTION]: Make code for using a separate .bss section conditional. Use my_begbss and my_endbss to determine .bss size by default. Look for Emacs data in EMDATA section.
* Add pragma to force zero initializedGeoff Voelker1997-07-011-0/+4
| | | | data into .data segment.
* Use new names for w32 filesGeoff Voelker1996-11-191-1/+1
|
* Change identifiers of the form win32* to w32*.Geoff Voelker1996-11-191-1/+1
|
* (WinMain): Function removed.Geoff Voelker1996-05-031-47/+6
| | | | | (_start) [HAVE_NTGUI]: Don't invoke WinMain, but do set up WinMain args as crt0.c would.
* (WinMain): Allocate a console for stdoutGeoff Voelker1996-03-171-1/+23
| | | | and stderr if necessary.
* Update FSF's address in the preamble.Erik Naggum1996-01-151-15/+14
|
* Comment fixes.Karl Heuer1996-01-051-1/+1
|
* (get_bss_info_from_map_file): New function.Geoff Voelker1995-12-241-1/+55
| | | | | (get_section_info): When .bss section parameters are not in the executable, search the symbol map file for them.
* [HAVE_NTGUI] (WinMain): New procedure.Geoff Voelker1995-11-071-4/+40
| | | | | [HAVE_NTGUI] (hinst, hprevinst, lpCmdLine, nCmdShow): New variables. [HAVE_NTGUI] (_start): Invoke WinMainCRTStartup.
* (get_section_info): Set the end of the data regionGeoff Voelker1995-06-301-17/+48
| | | | | | to be just before the start of the shared library data. (read_in_bss): Read directly into memory. (map_in_heap): Read directly into memory if unable to map.
* Initial revisionKarl Heuer1995-06-151-0/+483