Ariadne Conill
638770cfd0
x86_64: add static assert verifying memory layout
2021-01-08 02:56:45 -07:00
Ariadne Conill
78e880a29f
test POSIX ABI compatibility in libucontext itself, too
2021-01-08 02:37:47 -07:00
Ariadne Conill
39a2958561
add previous ABI symbols
2021-01-08 02:30:50 -07:00
Ariadne Conill
5e6e421c54
Merge pull request #23 from q66/static-only-fix
...
build: depend on headers for the static target
2021-01-08 04:24:13 -05:00
Ariadne Conill
91c8837c93
Merge pull request #24 from q66/ppc-fixes
...
ppc, ppc64: tag global symbols as functions
2021-01-08 04:23:59 -05:00
Daniel Kolesa
cf05112306
ppc, ppc64: use common ALIAS/FUNC/END macros
2021-01-08 04:52:46 +01:00
Daniel Kolesa
6026980cac
ppc, ppc64: tag global symbols as functions
...
it is necessary to tag these symbols as functions otherwise the
linker gets confused; this previously manifested as the internal
functions (pre-rename) like __getcontext leaking into the symbol
table of things linked against libucontext that used the ucontext
POSIX API through the weak aliases
it also had another bad effect and that is if you tried to use
libucontext's API (post-rename), the linker would warn you during
compile time that the type is unknown, and the resulting program
would crash at runtime
after properly tagging everything, I no longer notice any leakage,
i.e. there don't seem to be any references to the aliased symbols
in the resulting symbol table when using the aliases, and using
the libucontext prefixed symbols directly also works
2021-01-08 04:27:27 +01:00
Daniel Kolesa
03927d4c4c
build: depend on headers for the static target
...
this fixes static-only build, i.e. "make libucontext.a"
2021-01-08 03:01:32 +01:00
Ariadne Conill
d81154a61c
riscv64: port to C trampoline
2020-12-12 00:08:48 -07:00
Ariadne Conill
11a40293be
riscv64: simplify the context swapping
2020-12-12 07:05:09 +00:00
Ariadne Conill
6763b5ba1e
README: note which archs support C trampoline
2020-12-11 23:53:09 -07:00
Ariadne Conill
c986ba340e
build: use ARCH=ppc64 by default on ppc64le
2020-12-12 06:46:08 +00:00
Ariadne Conill
22b91690bc
aarch64: move to C trampoline
2020-12-12 06:43:58 +00:00
Ariadne Conill
afcca79d7b
arm: move to C trampoline
2020-12-12 06:40:27 +00:00
Ariadne Conill
a6a64b0711
build: fix test_libucontext_posix linkage
2020-12-12 06:37:31 +00:00
Ariadne Conill
388edbe121
x86: port to use common trampoline
2020-12-12 06:32:01 +00:00
Ariadne Conill
3123bfdd9b
gitignore: add a bunch of stuff
2020-12-11 23:23:08 -07:00
Ariadne Conill
b6542e1a6a
m68k: port to use common trampoline
2020-12-12 00:17:26 -06:00
Ariadne Conill
b62ecd476c
start NEWS for 1.0
2020-12-11 23:09:58 -07:00
Ariadne Conill
09d3f81dcf
sh: use new common trampoline
2020-12-12 06:08:33 +00:00
Ariadne Conill
2d51d7bfa4
x86_64: add common trampoline code written in C, port to it
2020-12-11 23:04:47 -07:00
Ariadne Conill
71cbb6a3d3
README: note sh architecture is supported
2020-12-11 23:03:45 -07:00
Ariadne Conill
5c3ca5a7e1
sh: add freestanding bits
2020-12-12 06:02:47 +00:00
Ariadne Conill
8d58adb3ba
sh: fix up setcontext/swapcontext
2020-12-12 05:57:58 +00:00
Ariadne Conill
dd7ef8a806
sh: makecontext: fix stack alignment
2020-12-12 05:04:39 +00:00
Ariadne Conill
f9a3f65f5b
sh: fix getcontext implementation
2020-12-12 05:04:17 +00:00
Ariadne Conill
82f734ab47
sh: makecontext: set up stack pointer in r15
2020-12-12 04:53:50 +00:00
Ariadne Conill
da3c8d170f
sh: add remaining port files
2020-12-11 23:18:04 +00:00
Ariadne Conill
a42fb86da0
sh: add plausible swapcontext implementation
2020-12-11 22:37:21 +00:00
Ariadne Conill
00261d70e8
sh: add plausible setcontext implementation
2020-12-11 22:25:23 +00:00
Ariadne Conill
fd06f42bc3
sh: add first attempt at a getcontext implementation
2020-12-11 21:58:56 +00:00
Ariadne Conill
2692ecf74a
sh: defs: define REG_GBR, REG_MACH, REG_MACL
2020-12-11 21:35:12 +00:00
Ariadne Conill
42a4fbe9d1
sh: add makecontext
2020-12-11 21:13:20 +00:00
Ariadne Conill
de399ebdbf
build: override ARCH to sh on sh4 systems
2020-12-11 12:09:59 +00:00
Ariadne Conill
4ea37b1877
libucontext_posix: fix build under glibc
2020-12-11 11:12:47 +00:00
Ariadne Conill
634145cc40
add libucontext_posix test program
2020-12-09 01:40:12 +00:00
Ariadne Conill
04b5520a61
build: build test_libucontext_posix program
2020-12-09 01:39:54 +00:00
Ariadne Conill
2688747f8a
build: make and install libucontext_posix
2020-12-08 18:29:21 -07:00
Ariadne Conill
ed1e5752fc
libucontext_posix: add some tracing
2020-12-08 18:28:35 -07:00
Ariadne Conill
27d8a515e1
libucontext_posix: add posixly-correct wrapper around libucontext
2020-12-08 17:06:09 -07:00
Ariadne Conill
045e622971
libucontext 0.13.1.
2020-12-08 03:49:52 -07:00
Ariadne Conill
4a91eacd41
Merge pull request #21 from omerfirmak/master
...
.pc file should be installed under PKGCONFIGDIR
2020-12-08 03:25:48 -07:00
Ömer Faruk IRMAK
f2f46569e7
.pc file should be installed under PKGCONFIGDIR
2020-12-08 12:18:01 +03:00
Ariadne Conill
f0b5c0f7e1
libucontext 0.13.
2020-12-07 18:29:54 -07:00
Ariadne Conill
5cf38aeae8
build: add dist/distcheck
2020-12-07 18:28:02 -07:00
Ariadne Conill
bced874113
README: discuss docs/install_docs and DESTDIR
2020-12-07 18:21:58 -07:00
Ariadne Conill
d64931ad4f
build: add install_docs target
2020-12-07 18:19:37 -07:00
Ariadne Conill
cc2b4da24a
add cooperative threading example
2020-12-07 18:15:18 -07:00
Ariadne Conill
a52354e640
build: add docs target
2020-12-07 18:14:51 -07:00
Ariadne Conill
be5b4c0cac
add manual page
2020-12-07 18:14:35 -07:00