setup_linux: Improve segments init & add modify_ldt fallback

This commit is contained in:
2025-11-11 00:24:42 -07:00
parent 6c4f332705
commit f18f2a929d
9 changed files with 323 additions and 86 deletions

View File

@@ -333,7 +333,7 @@ int main(int argc, char **argv) {
wibo::processPeb = peb;
wibo::initializeTibStackInfo(tib);
if (!wibo::installTibForCurrentThread(tib)) {
perror("Failed to install TIB for main thread");
perror("Failed to setup x86 segments and TEB");
return 1;
}