245916cd2Sjpk * CDDL HEADER START
345916cd2Sjpk *
445916cd2Sjpk * The contents of this file are subject to the terms of the
545916cd2Sjpk * Common Development and Distribution License (the "License").
645916cd2Sjpk * You may not use this file except in compliance with the License.
745916cd2Sjpk *
845916cd2Sjpk * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
945916cd2Sjpk * or http://www.opensolaris.org/os/licensing.
1045916cd2Sjpk * See the License for the specific language governing permissions
1145916cd2Sjpk * and limitations under the License.
1245916cd2Sjpk *
1345916cd2Sjpk * When distributing Covered Code, include this CDDL HEADER in each
1445916cd2Sjpk * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1545916cd2Sjpk * If applicable, add the following below this CDDL HEADER, with the
1645916cd2Sjpk * fields enclosed by brackets "[]" replaced with your own identifying
1745916cd2Sjpk * information: Portions Copyright [yyyy] [name of copyright owner]
1845916cd2Sjpk *
1945916cd2Sjpk * CDDL HEADER END
2045916cd2Sjpk */
237257d1b4Sraf * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
2445916cd2Sjpk * Use is subject to license terms.
2545916cd2Sjpk */
27*9a70fc3bSMark J. Nelson	.file	"synonyms.s"
297257d1b4Sraf#define	SYN(name)					\
307257d1b4Sraf	.align	16;					\
317257d1b4Sraf	.globl	name;					\
327257d1b4Sraf	.globl	_/**/name;				\
337257d1b4Sraf	.type	_/**/name, @function;			\
347257d1b4Sraf_/**/name:						\
357257d1b4Sraf	call	1f;					\
367257d1b4Sraf1:	popl	%eax;					\
377257d1b4Sraf	addl	$_GLOBAL_OFFSET_TABLE_ + [. - 1b], %eax;\
387257d1b4Sraf	movl	name@GOT(%eax), %eax;			\
397257d1b4Sraf	jmp	*%eax;					\
407257d1b4Sraf	.size	_/**/name, [. - _/**/name]
427257d1b4Sraf#define	SYN2(name)					\
437257d1b4Sraf	.align	16;					\
447257d1b4Sraf	.globl	name;					\
457257d1b4Sraf	.globl	__/**/name;				\
467257d1b4Sraf	.type	__/**/name, @function;			\
477257d1b4Sraf__/**/name:						\
487257d1b4Sraf	call	1f;					\
497257d1b4Sraf1:	popl	%eax;					\
507257d1b4Sraf	addl	$_GLOBAL_OFFSET_TABLE_ + [. - 1b], %eax;\
517257d1b4Sraf	movl	name@GOT(%eax), %eax;			\
527257d1b4Sraf	jmp	*%eax;					\
537257d1b4Sraf	.size	__/**/name, [. - __/**/name]
557257d1b4Sraf#include "synonym_list"