Skip to content

Commit

Permalink
Add CHPE objects.
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyONeal committed May 11, 2020
1 parent 69869ad commit ce14a58
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Binary file added stl/aliases/chpe/std_init_once_begin_initialize.obj
Binary file not shown.
Binary file added stl/aliases/chpe/std_init_once_complete.obj
Binary file not shown.
10 changes: 10 additions & 0 deletions stl/aliases/generate.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ rmdir /s /q i386
rmdir /s /q amd64
rmdir /s /q arm
rmdir /s /q arm64
rmdir /s /q chpe

mkdir i386
mkdir amd64
mkdir arm
mkdir arm64
mkdir chpe

:: __std_init_once_begin_initialize
..\..\..\..\..\tools\x86\aliasobj.exe ^
Expand All @@ -30,6 +32,10 @@ mkdir arm64
__imp_InitOnceBeginInitialize ^
arm\std_init_once_begin_initialize.obj
copy amd64\std_init_once_begin_initialize.obj arm64\std_init_once_begin_initialize.obj
..\..\..\..\..\tools\x86\aliasobj.exe ^
__imp_#__std_init_once_begin_initialize@16 ^
__imp_#InitOnceBeginInitialize@16 ^
chpe\std_init_once_begin_initialize.obj

:: __std_init_once_complete
..\..\..\..\..\tools\x86\aliasobj.exe ^
Expand All @@ -45,3 +51,7 @@ copy amd64\std_init_once_begin_initialize.obj arm64\std_init_once_begin_initiali
__imp_InitOnceComplete ^
arm\std_init_once_complete.obj
copy amd64\std_init_once_complete.obj arm64\std_init_once_complete.obj
..\..\..\..\..\tools\x86\aliasobj.exe ^
__imp_#__std_init_once_complete@12 ^
__imp_#InitOnceComplete@12 ^
chpe\std_init_once_complete.obj

3 comments on commit ce14a58

@AlexGuteniev
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is CHPE anyway?

@AlexGuteniev
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, found it "can mix x86 and Arm code using CHPE (Compiled Hybrid Portable Executable) "

@StephanTLavavej
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. It's kind of a fifth architecture, but not quite - it only needs special-casing in a few situations (which I am mostly unfamiliar with).

Please sign in to comment.