1. 22 Jan, 1999 3 commits
  2. 21 Jan, 1999 2 commits
  3. 20 Jan, 1999 2 commits
  4. 19 Jan, 1999 18 commits
  5. 18 Jan, 1999 9 commits
  6. 17 Jan, 1999 6 commits
    • Andrew Innes's avatar
      (w32_executable_type): Relax the check to identify · a7325b56
      Andrew Innes authored
      cygwin-compiled applications, because the exact dll name varies
      with release.  Now only require the name to start "cygwin".
      a7325b56
    • Andrew Innes's avatar
      (ROUND_UP): · a5352d98
      Andrew Innes authored
      (ROUND_DOWN): New macros.
      (need_to_recreate_heap): Renamed to using_dynamic_heap.
      (init_heap): New extern.
      (data_region_size):
      (recreate_heap):
      (read_in_bss):
      (map_in_heap):
      (round_to_next):
      (w32_fatal_reload_error):
      (get_section_size): Obsolete externs removed.
      a5352d98
    • Andrew Innes's avatar
      (RVA_TO_PTR): Redefine to convert RVA to address in · 30d2b1c2
      Andrew Innes authored
      current process.
      (round_to_next): Obsolete function removed.
      (preload_heap_section): New variable.
      (data_region_size): Obsolete variable removed.
      (allocate_heap): Modified to determine end of static heap section
      used during preload, and use that as initial base address for
      dynamic heap instead of hard-coded value.
      (sbrk): Remove call to allocate_heap; handled by init_heap.  Skip
      calls to commit or decommit pages when allocating from static heap
      section during preload.
      (recreate_heap): Obsolete function removed.
      (init_heap): New function to initialize internal sbrk heap
      variables.  Uses static heap section during preload, otherwise
      calls allocate_heap to reserve a heap region dynamically.
      (round_heap): Use ROUND_UP macro instead of round_to_next.
      30d2b1c2
    • Andrew Innes's avatar
      Major rewrite to support cleaner method of dumping; a · 5b79dba5
      Andrew Innes authored
      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.
      5b79dba5
    • Andrew Innes's avatar
      (get_lim_data): Use reserved_heap_size instead of · 3bc2366f
      Andrew Innes authored
      data_region_size.
      3bc2366f
    • Andrew Innes's avatar
      (TEMACS_TMP): New macro. · ea01f002
      Andrew Innes authored
      ($(TEMACS)): Output to TEMACS_TMP from link, use post-link
      processor to add static heap section in support of new unexec.
      ea01f002