diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-01-26 22:41:05 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-01-26 22:41:05 -0500 |
| commit | 8c6d4505329f94446084ca93eae10cd796d79a8d (patch) | |
| tree | c00c6a990c81bd771ebcac72b38fd3ce2382c42e /nonstd/x86-32.s | |
new framework for building sources after gitlab migration
Diffstat (limited to 'nonstd/x86-32.s')
| -rw-r--r-- | nonstd/x86-32.s | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/nonstd/x86-32.s b/nonstd/x86-32.s new file mode 100644 index 00000000..dd7dbeff --- /dev/null +++ b/nonstd/x86-32.s @@ -0,0 +1,18 @@ +.global __syscall_x86_32 +__syscall_x86_32: + mov 4(%esp), %eax + mov 8(%esp), %ebx + mov 12(%esp), %ecx + mov 16(%esp), %edx + mov 20(%esp), %esi + mov 24(%esp), %edi + mov 28(%esp), %ebp + sysenter + ret + +/* FIXME: this seems to be unpossible to put in a shared library */ +/* FIXME: it may be worthwhile to separate this into crt1.s */ +.global _start +_start: + /* TODO */ + call __libc_start |
