| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: asm.h,v 1.50 2020/04/17 14:19:44 joerg Exp $ */ | | 1 | /* $NetBSD: asm.h,v 1.51 2020/04/18 10:37:37 joerg Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (C) 1995, 1996 Wolfgang Solfrank. | | 4 | * Copyright (C) 1995, 1996 Wolfgang Solfrank. |
5 | * Copyright (C) 1995, 1996 TooLs GmbH. | | 5 | * Copyright (C) 1995, 1996 TooLs GmbH. |
6 | * All rights reserved. | | 6 | * All rights reserved. |
7 | * | | 7 | * |
8 | * Redistribution and use in source and binary forms, with or without | | 8 | * Redistribution and use in source and binary forms, with or without |
9 | * modification, are permitted provided that the following conditions | | 9 | * modification, are permitted provided that the following conditions |
10 | * are met: | | 10 | * are met: |
11 | * 1. Redistributions of source code must retain the above copyright | | 11 | * 1. Redistributions of source code must retain the above copyright |
12 | * notice, this list of conditions and the following disclaimer. | | 12 | * notice, this list of conditions and the following disclaimer. |
13 | * 2. Redistributions in binary form must reproduce the above copyright | | 13 | * 2. Redistributions in binary form must reproduce the above copyright |
14 | * notice, this list of conditions and the following disclaimer in the | | 14 | * notice, this list of conditions and the following disclaimer in the |
| @@ -146,27 +146,27 @@ y: .quad .##y,.TOC.@tocbase,0; \ | | | @@ -146,27 +146,27 @@ y: .quad .##y,.TOC.@tocbase,0; \ |
146 | # define CALL(y) \ | | 146 | # define CALL(y) \ |
147 | bl y | | 147 | bl y |
148 | | | 148 | |
149 | # define ENTRY_NOPROFILE(y) _ENTRY(_C_LABEL(y)) | | 149 | # define ENTRY_NOPROFILE(y) _ENTRY(_C_LABEL(y)) |
150 | # define ASENTRY(y) _ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE | | 150 | # define ASENTRY(y) _ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE |
151 | #endif /* __LP64__ */ | | 151 | #endif /* __LP64__ */ |
152 | | | 152 | |
153 | #define GLOBAL(y) _GLOBAL(_C_LABEL(y)) | | 153 | #define GLOBAL(y) _GLOBAL(_C_LABEL(y)) |
154 | | | 154 | |
155 | #define ASMSTR .asciz | | 155 | #define ASMSTR .asciz |
156 | | | 156 | |
157 | #undef __RCSID | | 157 | #undef __RCSID |
158 | #define RCSID(x) __RCSID(x) | | 158 | #define RCSID(x) __RCSID(x) |
159 | #define RCSID(x) .pushsection ".ident","MS",@progbits,1; \ | | 159 | #define __RCSID(x) .pushsection ".ident","MS",@progbits,1; \ |
160 | .asciz x; \ | | 160 | .asciz x; \ |
161 | .popsection | | 161 | .popsection |
162 | | | 162 | |
163 | #ifdef __ELF__ | | 163 | #ifdef __ELF__ |
164 | # define WEAK_ALIAS(alias,sym) \ | | 164 | # define WEAK_ALIAS(alias,sym) \ |
165 | .weak alias; \ | | 165 | .weak alias; \ |
166 | alias = sym | | 166 | alias = sym |
167 | #endif /* __ELF__ */ | | 167 | #endif /* __ELF__ */ |
168 | /* | | 168 | /* |
169 | * STRONG_ALIAS: create a strong alias. | | 169 | * STRONG_ALIAS: create a strong alias. |
170 | */ | | 170 | */ |
171 | #define STRONG_ALIAS(alias,sym) \ | | 171 | #define STRONG_ALIAS(alias,sym) \ |
172 | .globl alias; \ | | 172 | .globl alias; \ |