~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Minix Cross Reference
Minix/Solaris/make_map_file


  1 #!/bin/sh
  2 # This script is needed as part of generating map files for mm and fs.
  3 # kernel, mm and fs occupy successive chunks of virtual memory, and are
  4 # linked to execute in the virtual addresses they occupy.  This means
  5 # that when mm is linked, it must be forced to start at the virtual
  6 # address that follows the kernel, and when fs is linked it must follow
  7 # mm.  This script expects an smx executable on the standard input,
  8 # and generates an ld(1) map file that will cause an executable
  9 # to be linked to start at the virtual address following the smx executable
 10 # on stdin.  The map file also causes the text and data segments
 11 # to be 8Kb, aligned and multiples of 8Kb, assuming that next_prog_addr
 12 # returns on address that is a multiple of 8Kb.  next_prog_addr
 13 # expects an smx executable on its stdin.
 14 #
 15 # So in the Makefile for mm, we can generate a map file with:
 16 # 
 17 #     make_map_file <../kernel/kernel
 18 
 19 # 1997/01/21 Converted to a sh script (PJA)
 20 
 21 start_addr=`next_prog_addr`
 22 echo 'text = LOAD ?RX V'$start_addr\;
 23 echo 'data = LOAD ?RWX A8192;'

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.