xref: /titanic_51/usr/src/cmd/sgs/libld/common/machsym.sparc.h (revision 635216b673cf196ac523ff2a7ab715717e553292)
1ba2be530Sab196087 /*
2ba2be530Sab196087  * CDDL HEADER START
3ba2be530Sab196087  *
4ba2be530Sab196087  * The contents of this file are subject to the terms of the
5ba2be530Sab196087  * Common Development and Distribution License (the "License").
6ba2be530Sab196087  * You may not use this file except in compliance with the License.
7ba2be530Sab196087  *
8ba2be530Sab196087  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9ba2be530Sab196087  * or http://www.opensolaris.org/os/licensing.
10ba2be530Sab196087  * See the License for the specific language governing permissions
11ba2be530Sab196087  * and limitations under the License.
12ba2be530Sab196087  *
13ba2be530Sab196087  * When distributing Covered Code, include this CDDL HEADER in each
14ba2be530Sab196087  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15ba2be530Sab196087  * If applicable, add the following below this CDDL HEADER, with the
16ba2be530Sab196087  * fields enclosed by brackets "[]" replaced with your own identifying
17ba2be530Sab196087  * information: Portions Copyright [yyyy] [name of copyright owner]
18ba2be530Sab196087  *
19ba2be530Sab196087  * CDDL HEADER END
20ba2be530Sab196087  */
21ba2be530Sab196087 
22ba2be530Sab196087 /*
23*635216b6SRod Evans  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24ba2be530Sab196087  * Use is subject to license terms.
25ba2be530Sab196087  */
26ba2be530Sab196087 
27ba2be530Sab196087 /*
28ba2be530Sab196087  * Sparc register symbols
29ba2be530Sab196087  */
30ba2be530Sab196087 
31ba2be530Sab196087 #ifndef	_MACHSYM_DOT_SPARC_DOT_H
32ba2be530Sab196087 #define	_MACHSYM_DOT_SPARC_DOT_H
33ba2be530Sab196087 
34ba2be530Sab196087 #ifdef	__cplusplus
35ba2be530Sab196087 extern "C" {
36ba2be530Sab196087 #endif
37ba2be530Sab196087 
38ba2be530Sab196087 #if	defined(_ELF64)
39ba2be530Sab196087 
40ba2be530Sab196087 #define	ld_is_regsym_sparc	ld64_is_regsym_sparc
41ba2be530Sab196087 #define	ld_mach_sym_typecheck_sparc	ld64_mach_sym_typecheck_sparc
42ba2be530Sab196087 #define	ld_reg_check_sparc	ld64_reg_check_sparc
43ba2be530Sab196087 #define	ld_reg_enter_sparc	ld64_reg_enter_sparc
44ba2be530Sab196087 #define	ld_reg_find_sparc	ld64_reg_find_sparc
45ba2be530Sab196087 
46ba2be530Sab196087 #else
47ba2be530Sab196087 
48ba2be530Sab196087 #define	ld_is_regsym_sparc	ld32_is_regsym_sparc
49ba2be530Sab196087 #define	ld_mach_sym_typecheck_sparc	ld32_mach_sym_typecheck_sparc
50ba2be530Sab196087 #define	ld_reg_check_sparc	ld32_reg_check_sparc
51ba2be530Sab196087 #define	ld_reg_enter_sparc	ld32_reg_enter_sparc
52ba2be530Sab196087 #define	ld_reg_find_sparc	ld32_reg_find_sparc
53ba2be530Sab196087 
54ba2be530Sab196087 #endif
55ba2be530Sab196087 
56ba2be530Sab196087 extern const char	*ld_is_regsym_sparc(Ofl_desc *, Ifl_desc *, Sym *,
57*635216b6SRod Evans 			    const char *, int, Word, const char *, sd_flag_t *);
58ba2be530Sab196087 extern int		ld_mach_sym_typecheck_sparc(Sym_desc *, Sym *,
59ba2be530Sab196087 			    Ifl_desc *, Ofl_desc *);
60ba2be530Sab196087 extern int		ld_reg_check_sparc(Sym_desc *, Sym *, const char *,
61ba2be530Sab196087 			    Ifl_desc *, Ofl_desc *);
62ba2be530Sab196087 extern int		ld_reg_enter_sparc(Sym_desc *, Ofl_desc *);
63ba2be530Sab196087 extern Sym_desc *	ld_reg_find_sparc(Sym *, Ofl_desc *);
64ba2be530Sab196087 
65ba2be530Sab196087 
66ba2be530Sab196087 #ifdef	__cplusplus
67ba2be530Sab196087 }
68ba2be530Sab196087 #endif
69ba2be530Sab196087 
70ba2be530Sab196087 #endif /* _MACHSYM_DOT_SPARC_DOT_H */
71