Open chyyuu opened 3 years ago
Yes. LibOS can only run dynamic linked programs because we have to modify libc.so (syscall -> function call). Static linked programs have syscall instructions in their binary files.
Thank you. I guess: If we build static apps with modified libc .a (syscall --> function call), then these static apps should work correctly.
e.g.
chyyuu:zCore$ cargo run --release -p linux-loader -- /libc-test/src/functional/argv-static.exe Finished release [optimized] target(s) in 0.03s Running
target/release/linux-loader /libc-test/src/functional/argv-static.exe
段错误 (核心已转储) chyyuu:zCore$I also notice:
scripts/libc-tests.py
L22~24:
ignore static linked tests
These codes mean LibOS mode zCore didn't support static linked tests?