forked from microsoft/onnxruntime
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add __x86.get_pc_thunk.bx to avoid dependency (microsoft#9955)
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/*++ | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
Licensed under the MIT License. | ||
Module Name: | ||
x86.get_pc_thunk.S | ||
Abstract: | ||
This module implements __x86.get_pc_thunk.* to avoid external dependency. | ||
--*/ | ||
|
||
|
||
#include "asmmacro.h" | ||
|
||
.intel_syntax noprefix | ||
|
||
/*++ | ||
Routine Description: | ||
The routine loads its return address -- which is the address of the | ||
instruction that immediately follows -- into the ebx register. | ||
--*/ | ||
|
||
FUNCTION_ENTRY __x86.get_pc_thunk.bx | ||
|
||
mov ebx, [esp] | ||
ret |