-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid an assertion failure in alias.asm (#2738)
Co-authored-by: Stephan T. Lavavej <[email protected]>
- Loading branch information
1 parent
fc9232d
commit 60decd0
Showing
5 changed files
with
56 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
; Copyright (c) Microsoft Corporation. | ||
; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
; weak symbol aliases | ||
|
||
; This checks if we're in x64 mode (using ml64). | ||
; Note that RAX isn't really an assembler symbol, | ||
; and this check only works in the IFDEF direction. | ||
; That is: | ||
; IFDEF RAX | ||
; meow | ||
; ENDIF | ||
; will expand to meow on only x64 systems, however: | ||
; IFNDEF RAX | ||
; meow | ||
; ENDIF | ||
; will expand to meow on _BOTH_ x64 and x86 systems. | ||
IFDEF RAX | ||
EXTERN __imp_InitOnceBeginInitialize : PROC | ||
ALIAS <__imp___std_init_once_begin_initialize> = <__imp_InitOnceBeginInitialize> | ||
ELSE | ||
EXTERN __imp__InitOnceBeginInitialize@16 : PROC | ||
ALIAS <__imp____std_init_once_begin_initialize@16> = <__imp__InitOnceBeginInitialize@16> | ||
ENDIF | ||
|
||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
; Copyright (c) Microsoft Corporation. | ||
; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
; weak symbol aliases | ||
|
||
; This checks if we're in x64 mode (using ml64). | ||
; Note that RAX isn't really an assembler symbol, | ||
; and this check only works in the IFDEF direction. | ||
; That is: | ||
; IFDEF RAX | ||
; meow | ||
; ENDIF | ||
; will expand to meow on only x64 systems, however: | ||
; IFNDEF RAX | ||
; meow | ||
; ENDIF | ||
; will expand to meow on _BOTH_ x64 and x86 systems. | ||
IFDEF RAX | ||
EXTERN __imp_InitOnceComplete : PROC | ||
ALIAS <__imp___std_init_once_complete> = <__imp_InitOnceComplete> | ||
ELSE | ||
EXTERN __imp__InitOnceComplete@12 : PROC | ||
ALIAS <__imp____std_init_once_complete@12> = <__imp__InitOnceComplete@12> | ||
ENDIF | ||
|
||
END |