tombl / linux

Linux kernel for WebAssembly
https://linux.tombl.dev
Other
15 stars 2 forks source link

Alternate implementation of sections #3

Closed tombl closed 3 months ago

tombl commented 3 months ago

Instead of working around the lack of section support, try to emulate them with a post-build generated json file.

Reverts some of the changes I made to avoid use of sections, including switching back to the kernel's implementation of percpu.

This still requires some hackery, because while we can get the boundaries of sections now, we still can't control their order/alignment.

Also removes use of threadlocals in favor of mutable module globals.