From c00c94a763b256f7ff8c0e6ae568119cb11995e6 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 8 Jun 2015 01:06:59 -0400 Subject: add manual .got entries to assembly files. signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information. --- src/setjmp/nt64/longjmp.s | 6 ++++++ src/setjmp/nt64/setjmp.s | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'src/setjmp/nt64') diff --git a/src/setjmp/nt64/longjmp.s b/src/setjmp/nt64/longjmp.s index f0b8253..21e879b 100644 --- a/src/setjmp/nt64/longjmp.s +++ b/src/setjmp/nt64/longjmp.s @@ -30,3 +30,9 @@ longjmp: mov 0x08(%rcx), %rsp # saved stack pointer mov (%rcx), %rdx # return address jmp *%rdx # return + + .section .got$longjmp + .global __imp_longjmp +__imp_longjmp: + .quad longjmp + .linkonce discard diff --git a/src/setjmp/nt64/setjmp.s b/src/setjmp/nt64/setjmp.s index 3369331..a3988bb 100644 --- a/src/setjmp/nt64/setjmp.s +++ b/src/setjmp/nt64/setjmp.s @@ -25,3 +25,9 @@ setjmp: xor %eax, %eax ret + + .section .got$setjmp,"r" + .global __imp_setjmp +__imp_setjmp: + .quad setjmp + .linkonce discard -- cgit v1.2.3