xref: /titanic_44/usr/src/lib/c_synonyms/i386/synonyms.s (revision 9a70fc3be3b1e966bf78825cdb8d509963a6f0a1)
17257d1b4Sraf/*
27257d1b4Sraf * CDDL HEADER START
37257d1b4Sraf *
47257d1b4Sraf * The contents of this file are subject to the terms of the
57257d1b4Sraf * Common Development and Distribution License (the "License").
67257d1b4Sraf * You may not use this file except in compliance with the License.
77257d1b4Sraf *
87257d1b4Sraf * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97257d1b4Sraf * or http://www.opensolaris.org/os/licensing.
107257d1b4Sraf * See the License for the specific language governing permissions
117257d1b4Sraf * and limitations under the License.
127257d1b4Sraf *
137257d1b4Sraf * When distributing Covered Code, include this CDDL HEADER in each
147257d1b4Sraf * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157257d1b4Sraf * If applicable, add the following below this CDDL HEADER, with the
167257d1b4Sraf * fields enclosed by brackets "[]" replaced with your own identifying
177257d1b4Sraf * information: Portions Copyright [yyyy] [name of copyright owner]
187257d1b4Sraf *
197257d1b4Sraf * CDDL HEADER END
207257d1b4Sraf */
217257d1b4Sraf
227257d1b4Sraf/*
237257d1b4Sraf * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
247257d1b4Sraf * Use is subject to license terms.
257257d1b4Sraf */
267257d1b4Sraf
27*9a70fc3bSMark J. Nelson	.file	"synonyms.s"
287257d1b4Sraf
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]
417257d1b4Sraf
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]
547257d1b4Sraf
557257d1b4Sraf#include "synonym_list"
56