map.pagealign revision 24da5b34f49324ed742a340010ed5bd3d4e06625
bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch#
570f02698492be6d25035d7a6ff65b2302bdb76dTimo Sirainen# ident "%Z%%M% %I% %E% SMI"
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# Use is subject to license terms.
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
44c6dbf0a48ebf3d18aec72849bd114b54f4b0aaPascal Volk# CDDL HEADER START
44c6dbf0a48ebf3d18aec72849bd114b54f4b0aaPascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# The contents of this file are subject to the terms of the
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# Common Development and Distribution License, Version 1.0 only
44c6dbf0a48ebf3d18aec72849bd114b54f4b0aaPascal Volk# (the "License"). You may not use this file except in compliance
44c6dbf0a48ebf3d18aec72849bd114b54f4b0aaPascal Volk# with the License.
44c6dbf0a48ebf3d18aec72849bd114b54f4b0aaPascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# or http://www.opensolaris.org/os/licensing.
44c6dbf0a48ebf3d18aec72849bd114b54f4b0aaPascal Volk# See the License for the specific language governing permissions
e7f1247b5ae1290974f9e078ad46c2b6809b2636Pascal Volk# and limitations under the License.
e7f1247b5ae1290974f9e078ad46c2b6809b2636Pascal Volk#
e7f1247b5ae1290974f9e078ad46c2b6809b2636Pascal Volk# When distributing Covered Code, include this CDDL HEADER in each
e7f1247b5ae1290974f9e078ad46c2b6809b2636Pascal Volk# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e7f1247b5ae1290974f9e078ad46c2b6809b2636Pascal Volk# If applicable, add the following below this CDDL HEADER, with the
44c6dbf0a48ebf3d18aec72849bd114b54f4b0aaPascal Volk# fields enclosed by brackets "[]" replaced with your own identifying
44c6dbf0a48ebf3d18aec72849bd114b54f4b0aaPascal Volk# information: Portions Copyright [yyyy] [name of copyright owner]
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# CDDL HEADER END
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# Linker mapfile to create page-aligned data within an Intel executable.
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# The linker does not use this file automatically, so one must use the -M
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# option to cc or ld:
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# cc -M /usr/lib/ld/map.pagealign myprogram.c
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volkdata = R0x1000;
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk