Skip to content

Commit

Permalink
Merge pull request #22 from xantares/mingw_export
Browse files Browse the repository at this point in the history
Fix {make,jump}_fcontext visibility with mingw
  • Loading branch information
olk committed Sep 28, 2015
2 parents 344fdc2 + 86f6bdc commit dca4389
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/asm/jump_i386_ms_pe_gas.asm
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,6 @@ _jump_fcontext:

/* indirect jump to context */
jmp *%edx

.section .drectve
.ascii " -export:\"jump_fcontext\""
3 changes: 3 additions & 0 deletions src/asm/jump_x86_64_ms_pe_gas.asm
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,6 @@ jump_fcontext:
/* indirect jump to context */
jmp *%r10
.seh_endproc

.section .drectve
.ascii " -export:\"jump_fcontext\""
3 changes: 3 additions & 0 deletions src/asm/make_i386_ms_pe_gas.asm
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,6 @@ finish:
hlt

.def __exit; .scl 2; .type 32; .endef /* standard C library function */

.section .drectve
.ascii " -export:\"make_fcontext\""
3 changes: 3 additions & 0 deletions src/asm/make_x86_64_ms_pe_gas.asm
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,6 @@ finish:
.seh_endproc

.def _exit; .scl 2; .type 32; .endef /* standard C library function */

.section .drectve
.ascii " -export:\"make_fcontext\""

0 comments on commit dca4389

Please sign in to comment.