osy
455ecd495f
Removed unsupported archs and updated README
...
Since the refactor to a standalone library, all of the unconverted archs no
longer work. We will delete them here and re-import them if ever needed.
This project has deviated significantly from the original project so the
README is updated to reflect it.
2020-11-08 12:46:02 -08:00
osy
74ca343398
Fix Linux build with underscore alias
2020-11-08 12:46:02 -08:00
osy
7094e4c427
aarch64: create empty startcontext.S file
...
To make build configs easier.
2020-10-11 16:39:38 -07:00
osy
148ec4c5b6
x86_64 support for library
2020-01-31 20:20:39 -08:00
osy
1f09180d75
Refactored as a standalone library
...
Only support aarch64 for now
2019-03-29 14:21:52 -07:00
A. Wilcox
f44320f873
Reorder registers in other x86_64 assembler files
...
This fixes the previous commit which changed the register order in
swapcontext only, which caused setcontext to subtly corrupt the stack.
2018-07-19 17:18:19 -05:00
William Pitcock
3303443ebd
Merge pull request #10 from fabled/master
...
fix x86_64 register order for swapcontext
2018-07-19 00:33:12 -05:00
Timo Teräs
da9db12ef7
fix x86_64 register order for swapcontext
...
rbp and rsi were reversed causing argument passing to fail since
rsi is used to pass 2nd argument.
fixes #9
2018-07-18 15:47:27 +03:00
William Pitcock
e00ea7baf4
README: we support s390x now
2018-02-15 05:55:26 +00:00
William Pitcock
5db5533514
arch: add s390x port
2018-02-15 05:54:17 +00:00
William Pitcock
0978cbad12
build: use -lucontext instead of libucontext.so in linker flags for test program
2018-02-15 04:41:22 +00:00
William Pitcock
e3697ff3b5
ppc64: trampoline: cleanups
2018-02-15 04:36:47 +00:00
William Pitcock
be2302c828
ppc: trampoline: cleanups
2018-02-15 04:36:36 +00:00
William Pitcock
07aa46d9d2
x86_64: trampoline: do same cleanups as in x86
2018-02-15 04:34:37 +00:00
William Pitcock
b12e2ac571
x86: trampoline: fix GOT clobbering, pointed out by fabled
2018-02-15 04:32:16 +00:00
William Pitcock
5c4b97c4fc
x86/x86_64: getcontext: no need to restore %ecx or %rcx
2018-02-14 05:12:09 +00:00
William Pitcock
edeee318d5
x86: trampoline: kill textrel
2018-02-14 03:37:25 +00:00
William Pitcock
38fb72ab76
build: use absolute path for LD_LIBRARY_PATH when testing
2018-02-14 03:30:50 +00:00
William Pitcock
a141c7755e
README: update for 0.1.0
2018-02-14 03:06:01 +00:00
William Pitcock
64b8aae794
build: remove test_libucontext on make clean
2018-02-14 03:01:35 +00:00
William Pitcock
2bbbb1ab9f
arch: ppc64: now working
2018-02-06 08:05:53 +00:00
William Pitcock
90349b3122
arch: add ppc64 port does not work yet
2018-02-06 06:19:44 +00:00
William Pitcock
e39fd8dda7
README: note that ppc implementation uses kernel assistance
2018-02-02 18:51:55 +00:00
William Pitcock
3c96a36020
arch: ppc: new port
2018-02-02 18:46:21 +00:00
William Pitcock
3c11dd94ae
README: x86 now supported
2018-02-01 01:28:19 +00:00
William Pitcock
36ecf8cc5b
build: rebuild test program if it is modified
2018-02-01 01:27:13 +00:00
William Pitcock
6f84065734
arch: add x86 port
2018-02-01 01:26:34 +00:00
William Pitcock
f70865694b
test_libucontext: explain the stack poisoning part
2018-01-31 23:23:45 +00:00
William Pitcock
0c0fd7f060
arch: add aarch64 port
2018-01-31 21:23:18 +00:00
William Pitcock
1920493a59
build: add -Iarch/${ARCH} to CFLAGS
2018-01-31 20:37:00 +00:00
William Pitcock
91a19c3322
build: fix arch detection
2018-01-31 05:58:26 +00:00
William Pitcock
5122b05e3b
README: we support ARM
2018-01-31 04:13:42 +00:00
William Pitcock
7f2b4a0ff3
build: default ARCH to $(uname -m)
2018-01-31 04:13:32 +00:00
William Pitcock
9306ca5adc
build: build testsuite with -ggdb3
2018-01-31 04:12:09 +00:00
William Pitcock
a771eccc63
arch: arm: add armv6+ port
2018-01-31 04:11:46 +00:00
William Pitcock
a76f6fa369
add README
2018-01-30 03:56:01 +00:00
William Pitcock
cc615da55f
build: add libucontext test program
2018-01-30 03:53:04 +00:00
William Pitcock
ea8ff9cba3
implement ucontext functions on x86_64
2018-01-30 03:41:02 +00:00
William Pitcock
0ca24670cc
don't bother with glibc stuff afterall, kernel defines ABI to use
2018-01-29 21:50:49 +00:00
William Pitcock
6c8c327bc8
add symbols.h
2018-01-29 17:05:35 +00:00
William Pitcock
12ddfac851
Initial commit
2018-01-29 10:23:18 -06:00