# Rationales for an official so_locations file:
# 1) to save kernel space reserved for page table -- each active
# 4Meg of user virtual space requires 4K of kernel page table space;
# 2) to save kernel virtual space (tlb) required to map each page of
# page tables.
# 3) to give rqsall information to help it place all the libraries to
#	that they quickstart.
# 
# 1) Put all libraries that you think are likely to be linked by the same
# program in the same 4Meg segment. This saves kernel page table space
# and can potentially speed up the program.
#
# 2) Allow adequate space between 4Meg segments of non-related libraries
# so that redistribution of one ISM type does not mess up other ISMs.
#
# 3) All libraries should be listed. If packing isn't an issue
#	then use the 'catch-all' range at the end.
# 4) There are 2 ways to pack - take a 4Mb chunk and have each .so
#	specify the entire 4Mb range. ld(1) will do the packing.
#	This has the advantage of dealing well with one or more
#	libraries changing size - each build will straighten things out
#	unless the total size gets too large. It has a few disadvantages:
#	a) if you have more than one version of the library with the same
#		soname (this file matches on soname), and one is alot
#		large than the other, you can run into trouble if
#		the smaller one is built first, then another library in the
#		range is built, followed by the larger version. The larger
#		version won't fit.
#	b) if the libraries come from different isms and something goes
#		wrong with the build, its more likely that libraries
#		will collide.
#	The second way is to create a separate range for each .so. This
#	will guarentee no overlaps, but of course if the library grows
#	too large ...
#
# This file, without any sizes, gets used during a build. ld(1) will fill
# in the sizes and sections. That output of the build (so_locations) is used
# as the input to a manual process that converts to so_locations.ship.
# That process needs to remove all libraries in so_locations that aren't
# in so_locations.master, and check in so_locations.ship.
#
# This file is used as the seed for both for o32 and n32
#
# The range 0x0f800000-0x0fc00000 is reserved for system related libraries.
# rld heap (128K max) at 0x0fbe0000 (rld heap can grow beyond 0x0fc00000).
rld.heap \
		:st = $range 0x0fbe0000, 0x00020000:\
		:st = .data 0x0fbe0000, 0x00020000:\

# rld text (384 K max) at 0x0fb60000, data (128 K max) at 0x0fbc0000
# this is so that we can reserve this slot for rld.
rld \
		:st = $range 0x0fb60000, 0x000080000:\
		:st = .text 0x0fb60000, 0x00060000:\
		:st = .data 0x0fbc0000, 0x00020000:\

#
# we explicitly set the text and data since all h*ll breaks out if
# we ever have data below text
#
libc.so.1 \
		:st = $range 0xfa00000, 0x160000:\
		:st = .data 0xfb40000, 0x20000:\
		:st = .text 0xfa00000, 0x110000:\

libcurses.so \
		:st = $range 0xf9b0000, 0x50000:\
		:st = .text 0xf9b0000, 0x30000:\
		:st = .data 0xf9e0000, 0x10000:\


libadm.so \
		:st = $range 0xf980000, 0x30000:\
		:st = .text 0xf980000, 0x20000:\
		:st = .data 0xf9a0000, 0x10000:\


libcrypt.so \
		:st = $range 0xf960000, 0x20000:\
		:st = .text 0xf960000, 0x10000:\
		:st = .data 0xf970000, 0x10000:\


libdl.so \
		:st = $range 0xf940000, 0x20000:\
		:st = .text 0xf940000, 0x10000:\
		:st = .data 0xf950000, 0x10000:\


libgen.so \
		:st = $range 0xf920000, 0x20000:\
		:st = .text 0xf920000, 0x10000:\
		:st = .data 0xf930000, 0x10000:\


libmalloc.so \
		:st = $range 0xf900000, 0x20000:\
		:st = .text 0xf900000, 0x10000:\
		:st = .data 0xf910000, 0x10000:\


librpcsvc.so \
		:st = $range 0xf8e0000, 0x20000:\
		:st = .text 0xf8e0000, 0x10000:\
		:st = .data 0xf8f0000, 0x10000:\


libw.so \
		:st = $range 0xf8c0000, 0x20000:\
		:st = .text 0xf8c0000, 0x10000:\
		:st = .data 0xf8d0000, 0x10000:\


libC.so \
		:st = $range 0x0f890000, 0x000030000:

libm.so \
		:st = $range 0x0f830000, 0x00060000:\
		:st = .text 0x0f840000, 0x00030000:\
		:st = .data 0x0f870000, 0x00020000:

libmutex.so \
		:st = $range 0xf810000, 0x20000:\
		:st = .text 0xf810000, 0x10000:\
		:st = .data 0xf820000, 0x10000:\


# The range 0x0f400000-0x0f800000 is reserved for X libraries
libX11.so.1 \
		:st = $range 0xf400000, 0x400000:\
		:st = .text 0xf450000, 0x100000:\
		:st = .data 0xf7e0000, 0x10000:\


libXt.so \
		:st = $range 0xf400000, 0x400000:\
		:st = .text 0xf620000, 0x80000:\
		:st = .data 0xf6a0000, 0x10000:\


libXaw.so.2 \
		:st = $range 0xf400000, 0x400000:\
		:st = .text 0xf5a0000, 0x40000:\
		:st = .data 0xf5e0000, 0x10000:\


libXmu.so \
		:st = $range 0xf400000, 0x400000:\
		:st = .text 0xf780000, 0x20000:\
		:st = .data 0xf7a0000, 0x10000:\


libXext.so \
		:st = $range 0xf400000, 0x400000:\
		:st = .text 0xf7b0000, 0x20000:\
		:st = .data 0xf7d0000, 0x10000:\


libXi.so \
		:st = $range 0xf400000, 0x400000:\
		:st = .text 0xf580000, 0x10000:\
		:st = .data 0xf590000, 0x10000:\


libXpm.so.1 \
		:st = $range 0x0f400000, 0x00400000:\
		:st = .text 0x0f550000, 0x00020000:\
		:st = .data 0x0f570000, 0x00010000:

# The range 0x0e800000-0x0ec00000 is currently reserved for future expansion
# of the above X libraries.
reserv1 \
		:st = $range 0x0e800000, 0x400000:

# The range 0x0f000000-0x0f400000 is reserved for libgl,libfm,libgltrace
# we give libgl its own space since it generates potentially lots of versions
libfm.so \
		:st = $range 0x0f200000, 0x00200000:\
		:st = .text 0x0f360000, 0x00070000:\
		:st = .data 0x0f3d0000, 0x00030000:

libgltrace.so \
		:st = $range 0x0f160000, 0x000a0000:\
		:st = .text 0x0f170000, 0x00070000:\
		:st = .data 0x0f1e0000, 0x00020000:

libgl.so \
		:st = $range 0x0f000000, 0x00160000:\
		:st = .text 0x0f070000, 0x000e0000:\
		:st = .data 0x0f020000, 0x00020000:


# The range 0x0ec00000-0x0f000000 is currently reserved for future expansion
# of the above gl and font manager libraries.
reserve2 \
		:st = $range 0x0ec00000, 0x400000:

# The range 0x0e400000 - 0x0e800000 is reserved for libraires used by toto
libil.so \
		:st = $range 0x0e400000, 0x00400000:\
		:st = .text 0x0e600000, 0x001e0000:\
		:st = .data 0x0e7e0000, 0x00020000:

libCadmin.so \
		:st = $range 0x0e400000, 0x400000:

# The range 0x0e000000 - 0x0e400000 is reserved for motif libraries
libXm.so.1 \
		:st = $range 0xe000000, 0x400000:\
		:st = .text 0xe1a0000, 0x190000:\
		:st = .data 0xe330000, 0x30000:\


libSgm.so.1 \
		:st = $range 0xe000000, 0x400000:\
		:st = .text 0xe170000, 0xa0000:\
		:st = .data 0xe210000, 0x20000:\


# The range 0x0dc00000 - 0x0e000000 is reserved for image libraries
libilFIT.so \
		:st = $range 0x0dc00000, 0x00400000:\
		:st = .text 0x0dfe0000, 0x00010000:\
		:st = .data 0x0dff0000, 0x00010000:

libilTIFF.so \
		:st = $range 0x0dc00000, 0x00400000:\
		:st = .text 0x0df80000, 0x00030000:\
		:st = .data 0x0dfb0000, 0x00030000:

libilSGI.so \
		:st = $range 0x0dc00000, 0x00400000:\
		:st = .text 0x0df60000, 0x00010000:\
		:st = .data 0x0df70000, 0x00010000:
libilPhotoCD.so \
		:st = $range 0x0dc00000, 0x00400000:\
		:st = .text 0x0df20000, 0x00030000:\
		:st = .data 0x0df50000, 0x00010000:
libilGIF.so \
		:st = $range 0x0dc00000, 0x00400000:\
		:st = .text 0x0df00000, 0x00010000:\
		:st = .data 0x0df10000, 0x00010000:
libilMon.so \
		:st = $range 0x0dc00000, 0x400000:\

libcifl.so \
		:st = $range 0x0dc00000, 0x400000:\

libcil.so \
		:st = $range 0x0dc00000, 0x00400000:\
		:st = .text 0x0de90000, 0x00030000:\
		:st = .data 0x0dec0000, 0x00010000:
libfil.so \
		:st = $range 0x0dc00000, 0x00400000:\
		:st = .text 0x0de50000, 0x00030000:\
		:st = .data 0x0de80000, 0x00010000:
libilJFIF.so \
		:st = $range 0x0dc00000, 0x00400000:\
		:st = .text 0x0ded0000, 0x00020000:\
		:st = .data 0x0def0000, 0x00010000:
libifl.so \
		:st = $range 0x0dc00000, 0x400000:\

libiflJFIF.so \
		:st = $range 0x0dc00000, 0x400000:\

libiflTIFF.so \
		:st = $range 0x0dc00000, 0x400000:\

libiflFIT.so \
		:st = $range 0x0dc00000, 0x400000:\

libiflGIF.so \
		:st = $range 0x0dc00000, 0x400000:\

libiflSGI.so \
		:st = $range 0x0dc00000, 0x400000:\

libiflPPM.so \
		:st = $range 0x0dc00000, 0x400000:\

libiflPhotoCD.so \
		:st = $range 0x0dc00000, 0x400000:\

# The range 0x0d800000 - 0x0dc00000 is reserved for opengl/gl libraires
# see also 0x0a800000
# In order to prevent libGLcore from getting crowded out, we break the
# bottom 4MB into two 2MB pieces and give one to libGLcore.
libGL.so \
                :st = $range 0x0d800000, 0x00200000:\
                :st = .text 0x0d9b0000, 0x00040000:\
                :st = .data 0x0d9f0000, 0x00010000:

libGLcore.so \
                :st = $range 0x0da00000, 0x00200000:\
                :st = .text 0x0da20000, 0x001b0000:\
                :st = .data 0x0dbd0000, 0x00030000:

libGLU.so \
                :st = $range 0x0d800000, 0x00200000:\
                :st = .text 0x0d930000, 0x00060000:\
                :st = .data 0x0d990000, 0x00020000:

libFL.so \
                :st = $range 0x0d800000, 0x00200000:\
                :st = .text 0x0d890000, 0x00060000:\
                :st = .data 0x0d8f0000, 0x00040000:

# The range 0x0d400000 - 0x0d800000 is reserved for libraries used by toto

libvkSGI.so.1 \
		:st = $range 0x0d400000, 0x00400000:\
		:st = .text 0x0d5a0000, 0x00010000:\
		:st = .data 0x0d5b0000, 0x00010000:

libvkhelp.so.1 \
		:st = $range 0x0d400000, 0x00400000:\
		:st = .text 0x0d5f0000, 0x00010000:\
		:st = .data 0x0d600000, 0x00010000:

libvk.so.1 \
		:st = $range 0x0d400000, 0x00400000:\
		:st = .text 0x0d610000, 0x000a0000:\
		:st = .data 0x0d6b0000, 0x00020000:

libvkmsg.so.1 \
		:st = $range 0x0d400000, 0x00400000:\
		:st = .text 0x0d5c0000, 0x00020000:\
		:st = .data 0x0d5e0000, 0x00010000:

libdesktopUtil.so \
		:st = $range 0x0d400000, 0x400000:

libdesktopIcon.so \
		:st = $range 0x0d400000, 0x400000:

libdesktopFileicon.so \
		:st = $range 0xd400000, 0x400000:\
		:st = .text 0xd7d0000, 0x20000:\
		:st = .data 0xd7f0000, 0x10000:\


libdesktopGallery.so \
		:st = $range 0x0d400000, 0x400000:

# tooltalk
libtt.so \
		:st = $range 0x0d400000, 0x00400000:\
		:st = .text 0x0d6d0000, 0x000e0000:\
		:st = .data 0x0d7b0000, 0x00020000:


# The range 0x0d000000 - 0x0d400000 is reserved for dmedia libraries
libaudiofile.so \
		:st = $range 0x0d000000, 0x00400000:\
		:st = .text 0x0d200000, 0x00060000:\
		:st = .data 0x0d260000, 0x00010000:

libaudioutil.so \
		:st = $range 0x0d000000, 0x00400000:\
		:st = .text 0x0d280000, 0x00010000:\
		:st = .data 0x0d290000, 0x00010000:

libmidi.so \
		:st = $range 0x0d000000, 0x400000:

libawareaudio.so \
		:st = $range 0x0d000000, 0x00400000:\
		:st = .text 0x0d2a0000, 0x00060000:\
		:st = .data 0x0d300000, 0x00030000:

libdmedia.so \
		:st = $range 0x0d000000, 0x00400000:\
		:st = .text 0x0d330000, 0x00090000:\
		:st = .data 0x0d3c0000, 0x00040000:

# The range 0x0cc00000 - 0x0d000000 is reserved for il8n libraries
libwnn.so \
		:st = $range 0x0cc00000, 0x400000:

libjgl.so \
		:st = $range 0x0cc00000, 0x400000:

libXawI18n.so \
		:st = $range 0x0cc00000, 0x400000:

# The double range 0x0c400000-0x0cc00000 is reserved for Inventor libraries.
#  Note: n32 inventor is bigger than 1 block, but o32 fits.

libInventor.so.3 \
		:st = $range 0x0c670000, 0x00590000:\
		:st = .text 0x0c780000, 0x00400000:\
		:st = .data 0x0cb80000, 0x00080000:
libInventorXt.so.3 \
		:st = $range 0x0c400000, 0x00270000:\
		:st = .text 0x0c5c0000, 0x00090000:\
		:st = .data 0x0c650000, 0x00010000:

# The range 0x0c000000 - 0x0c400000 is reserved for lesser used system libs
libudma.so \
		:st = $range 0xc000000, 0x400000:\
		:st = .text 0xc300000, 0x10000:\
		:st = .data 0xc310000, 0x10000:\


libl.so \
		:st = $range 0x0c000000, 0x00400000:\
		:st = .text 0x0c3a0000, 0x00010000:\
		:st = .data 0x0c3b0000, 0x00010000:

libmediad.so \
		:st = $range 0x0c000000, 0x400000:

libpkg.so \
		:st = $range 0xc000000, 0x400000:\
		:st = .text 0xc320000, 0x20000:\
		:st = .data 0xc340000, 0x10000:\


libnls.so \
		:st = $range 0x0c000000, 0x400000:

libmx.so \
		:st = $range 0x0c000000, 0x00400000:\
		:st = .text 0x0c320000, 0x00030000:\
		:st = .data 0x0c350000, 0x00020000:

libgrio.so \
		:st = $range 0xc000000, 0x400000:\
		:st = .text 0xc370000, 0x10000:\
		:st = .data 0xc380000, 0x10000:\


libdm.so \
		:st = $range 0xc000000, 0x400000:\
		:st = .text 0xc390000, 0x10000:\
		:st = .data 0xc3f0000, 0x10000:\


libirixpmda.so \
		:st = $range 0xc000000, 0x400000:\
		:st = .text 0xc2b0000, 0x30000:\
		:st = .data 0xc2e0000, 0x10000:\


libabi.so \
		:st = $range 0xc000000, 0x400000:\
		:st = .text 0xc290000, 0x10000:\
		:st = .data 0xc2a0000, 0x10000:\


libarray.so \
		:st = $range 0x0c000000, 0x400000:

# The range 0x0bc00000 - 0x0c000000 is reserved for video libraries
libvl.so \
		:st = $range 0x0bc00000, 0x00400000:\
		:st = .text 0x0bfd0000, 0x00020000:\
		:st = .data 0x0bff0000, 0x00010000:

Sirius.so \
		:st = $range 0x0bc00000, 0x400000:

SiriusVL.so \
		:st = $range 0x0bc00000, 0x400000:

vino.so \
		:st = $range 0x0bc00000, 0x00400000:\
		:st = .text 0x0bf90000, 0x00010000:\
		:st = .data 0x0bf70000, 0x00020000:

ev1.so \
		:st = $range 0x0bc00000, 0x00400000:\
		:st = .text 0x0bf10000, 0x00040000:\
		:st = .data 0x0bf50000, 0x00020000:

sv1.so \
		:st = $range 0x0bc00000, 0x400000:

cl_cosmo.so \
		:st = $range 0x0bc00000, 0x400000:

cosmo.so \
		:st = $range 0x0bc00000, 0x00400000:\
		:st = .text 0x0bfb0000, 0x00010000:\
		:st = .data 0x0bfc0000, 0x00010000:


# The range 0x0b800000 - 0x0bc00000 is reserved for less-used Motif librairies
libMrm.so.1 \
		:st = $range 0xb800000, 0x400000:\
		:st = .text 0xbbd0000, 0x20000:\
		:st = .data 0xbbf0000, 0x10000:\


libUil.so.1 \
		:st = $range 0xb800000, 0x400000:\
		:st = .text 0xbb60000, 0x40000:\
		:st = .data 0xbba0000, 0x30000:\


# The range 0x0b400000 - 0x0b800000 is reserved for SVR4 net libraries
libnsl.so \
		:st = $range 0x0b400000, 0x400000:

libsocket.so \
		:st = $range 0xb400000, 0x400000:\
		:st = .text 0xb7e0000, 0x10000:\
		:st = .data 0xb7f0000, 0x10000:\


nis.so \
		:st = $range 0x0b400000, 0x400000:

resolv.so \
		:st = $range 0x0b400000, 0x400000:

straddr.so \
		:st = $range 0x0b400000, 0x400000:

tcpip.so \
		:st = $range 0x0b400000, 0x400000:

# The range 0x0b000000 - 0x0b400000 is forrent

# The range 0x0ac00000 - 0x0b000000 is reserved for other compiler libs
libexc.so \
		:st = $range 0x0ac00000, 0x00400000:\
		:st = .text 0x0af70000, 0x00050000:\
		:st = .data 0x0afc0000, 0x00020000:

libftn.so \
		:st = $range 0x0ac00000, 0x00400000:\
		:st = .text 0x0ae80000, 0x00080000:\
		:st = .data 0x0ae10000, 0x00020000:

libfpe.so \
		:st = $range 0x0ac00000, 0x00400000:\
		:st = .text 0x0af30000, 0x00010000:\
		:st = .data 0x0ae30000, 0x00020000:

libfastm.so \
		:st = $range 0x0ac00000, 0x00400000:\
		:st = .text 0x0af50000, 0x00010000:\
		:st = .data 0x0af60000, 0x00010000:

libmp.so \
		:st = $range 0xac00000, 0x400000:\
		:st = .data 0xae60000, 0x20000:\
		:st = .text 0xae10000, 0x20000:\


libcomplex.so \
		:st = $range 0x0ac00000, 0x00400000:\
		:st = .text 0x0afe0000, 0x00010000:\
		:st = .data 0x0aff0000, 0x00010000:

libm43.so \
		:st = $range 0x0ac00000, 0x00400000:\
		:st = .text 0x0af10000, 0x00010000:\
		:st = .data 0x0af20000, 0x00010000:

libCsup.so \
		:st = $range 0x0ac00000, 0x00400000:\
		:st = .text 0x0ade0000, 0x00030000:\
		:st = .data 0x0af40000, 0x00010000:

# The range 0x0a800000 - 0x0ac00000 is reserved for other OpenGL libraries
libGLF.so \
		:st = $range 0x0a800000, 0x00400000:\
		:st = .text 0x0ab10000, 0x000d0000:\
		:st = .data 0x0abe0000, 0x00020000:

libGLFexec.so \
		:st = $range 0x0a800000, 0x400000:

libOK.so \
		:st = $range 0x0a800000, 0x400000:

# The range 0x0a000000 - 0x0a800000 is reserved for cmplrs
libftn90.so \
		:st = $range 0x0a000000, 0x00800000:\
		:st = .text 0x0a430000, 0x00390000:\
		:st = .data 0x0a7c0000, 0x00030000:


# Catch-all range
# If a .so is shipped, and its not in one of the above ranges - place it
# here. This is also where we place $start_address )for SGI build)
# so that any non-spec'd .so's will be placed somewhere in here.
# This range is from 0x02000000 -> 0x0a000000 - 128Mb.
libmd.so \
		:st = $range 0x02000000, 0x08000000:\
		:st = .text 0x09c20000, 0x00010000:\
		:st = .data 0x09c30000, 0x00010000:
libGLS.so \
		:st = $range 0x02000000, 0x08000000:\
		:st = .text 0x09c40000, 0x000a0000:\
		:st = .data 0x09ce0000, 0x00010000:
libMMmalloc.so \
		:st = $range 0x02000000, 0x08000000:\
		:st = .text 0x09b40000, 0x00010000:\
		:st = .data 0x09b50000, 0x00010000:
libogldebug.so \
		:st = $range 0x02000000, 0x08000000:\
		:st = .text 0x095b0000, 0x00060000:\
		:st = .data 0x09610000, 0x00060000:
liblim.so \
		:st = $range 0x02000000, 0x08000000:
libgd.so \
		:st = $range 0x02000000, 0x08000000:\
		:st = .text 0x07fb0000, 0x000b0000:\
		:st = .data 0x09c00000, 0x00010000:
libwwwhelp.so \
		:st = $range 0x02000000, 0x08000000:
libsgihelp.so \
		:st = $range 0x02000000, 0x08000000:
libshowcaseui.so \
		:st = $range 0x02000000, 0x08000000:
libshowcase_shareext.so \
		:st = $range 0x02000000, 0x08000000:
libshowcase3d.so \
		:st = $range 0x02000000, 0x08000000:
libcl.so \
		:st = $range 0x02000000, 0x08000000:\
		:st = .text 0x09f00000, 0x00080000:\
		:st = .data 0x09f80000, 0x00040000:
libdmc.so \
		:st = $range 0x02000000, 0x08000000:
libdn.so \
		:st = $range 0x02000000, 0x08000000:

# tcl libs
libOratcl.so \
		:st = $range 0x02000000, 0x08000000:
libSybtcl.so \
		:st = $range 0x02000000, 0x08000000:
libitcl.so \
		:st = $range 0x02000000, 0x08000000:
libtclObjSrv.so \
		:st = $range 0x02000000, 0x08000000:
libtkGLXAux.so \
		:st = $range 0x02000000, 0x08000000:
libtkGLX.so \
		:st = $range 0x02000000, 0x08000000:
libexpectk.so \
		:st = $range 0x02000000, 0x08000000:
libtclMotif.so \
		:st = $range 0x02000000, 0x08000000:
libexpect.so \
		:st = $range 0x02000000, 0x08000000:
libtkX.so \
		:st = $range 0x02000000, 0x08000000:
libtclX.so \
		:st = $range 0x02000000, 0x08000000:
libtcl.so \
		:st = $range 0x02000000, 0x08000000:
libpvtcl.so \
		:st = $range 0x02000000, 0x08000000:


# SGI libraries that are not specified above should start below 0x0a000000
# During a build, we comment out the line $start_address=0x40000000 and
# add a line to force SGI libariries below 0x0a000000

# Other libraries to follow
# Do not change the following line
# Non SGI libraries should be below 0x40000000
$start_address=0x40000000
lno.so \
		:st = .data 0xefa0000, 0x50000:\
		:st = .text 0xed30000, 0x270000:\

be.so \
		:st = .data 0xf760000, 0xa0000:\
		:st = .text 0xf610000, 0x150000:\

cg.so \
		:st = .data 0xe7c0000, 0x40000:\
		:st = .text 0xe610000, 0x1b0000:\

ipa.so \
		:st = .data 0xe3e0000, 0x10000:\
		:st = .text 0xe370000, 0x70000:\

wopt.so \
		:st = .data 0xf3e0000, 0x20000:\
		:st = .text 0xf290000, 0x150000:\

