From ed42e65fd406f9b8ed6ee6ca887431c13c556d0b Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 2 Jun 2015 12:15:37 -0400 Subject: arch-specific code: fix assembly function declarations. signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information. --- src/internal/nt32/syscall.s | 1 + src/internal/nt64/syscall.s | 1 + src/setjmp/nt32/longjmp.s | 4 ++++ src/setjmp/nt32/setjmp.s | 4 ++++ src/setjmp/nt64/longjmp.s | 4 ++++ src/setjmp/nt64/setjmp.s | 4 ++++ 6 files changed, 18 insertions(+) diff --git a/src/internal/nt32/syscall.s b/src/internal/nt32/syscall.s index 3fcd5bb..bf90d04 100644 --- a/src/internal/nt32/syscall.s +++ b/src/internal/nt32/syscall.s @@ -1,5 +1,6 @@ .text .global ___syscall +.def ___syscall; .scl 2; .type 32; .endef ___syscall: jmp ___syscall_disp diff --git a/src/internal/nt64/syscall.s b/src/internal/nt64/syscall.s index ce3827b..66fd96d 100644 --- a/src/internal/nt64/syscall.s +++ b/src/internal/nt64/syscall.s @@ -1,5 +1,6 @@ .text .global __syscall +.def __syscall; .scl 2; .type 32; .endef __syscall: jmp __syscall_disp diff --git a/src/setjmp/nt32/longjmp.s b/src/setjmp/nt32/longjmp.s index 095a47f..46713f2 100644 --- a/src/setjmp/nt32/longjmp.s +++ b/src/setjmp/nt32/longjmp.s @@ -3,6 +3,10 @@ .globl __longjmp .globl _longjmp +.def ___longjmp; .scl 2; .type 32; .endef +.def __longjmp; .scl 2; .type 32; .endef +.def _longjmp; .scl 2; .type 32; .endef + ___longjmp: __longjmp: _longjmp: diff --git a/src/setjmp/nt32/setjmp.s b/src/setjmp/nt32/setjmp.s index 1865f0c..d4e8db3 100644 --- a/src/setjmp/nt32/setjmp.s +++ b/src/setjmp/nt32/setjmp.s @@ -3,6 +3,10 @@ .globl __setjmp .globl _setjmp +.def ___setjmp; .scl 2; .type 32; .endef +.def __setjmp; .scl 2; .type 32; .endef +.def _setjmp; .scl 2; .type 32; .endef + ___setjmp: __setjmp: _setjmp: diff --git a/src/setjmp/nt64/longjmp.s b/src/setjmp/nt64/longjmp.s index 0fcf52e..f0b8253 100644 --- a/src/setjmp/nt64/longjmp.s +++ b/src/setjmp/nt64/longjmp.s @@ -3,6 +3,10 @@ .globl _longjmp .globl longjmp +.def __longjmp; .scl 2; .type 32; .endef +.def _longjmp; .scl 2; .type 32; .endef +.def longjmp; .scl 2; .type 32; .endef + __longjmp: _longjmp: longjmp: diff --git a/src/setjmp/nt64/setjmp.s b/src/setjmp/nt64/setjmp.s index 3e8a1ea..3369331 100644 --- a/src/setjmp/nt64/setjmp.s +++ b/src/setjmp/nt64/setjmp.s @@ -3,6 +3,10 @@ .globl _setjmp .globl setjmp +.def __setjmp; .scl 2; .type 32; .endef +.def _setjmp; .scl 2; .type 32; .endef +.def setjmp; .scl 2; .type 32; .endef + __setjmp: _setjmp: setjmp: -- cgit v1.2.3