~/Tests/Runtime/ABI/Linker> gcc Test.c -o Test ~/Tests/Runtime/ABI/Linker> Test This is a test. ~/Tests/Runtime/ABI/Linker> gcc -B /Haiku/data/packages/mold Test.c -o Test ~/Tests/Runtime/ABI/Linker> Test runtime_loader: /boot/home/Tests/Runtime/ABI/Linker/Test: Could not map image: Invalid Argument ~/Tests/Runtime/ABI/Linker> strace -l Test [ 15866] create_area("rld heap", 0x7f98952b7ab8, 0x6, 0x10000, 0x0, 0x3) = 0x7ee33 () (297 us) [ 15866] create_area("_rld_debug_", 0x7f98952b7ab8, 0x6, 0x1000, 0x0, 0x103) = 0x7ee34 () (103 us) [ 15866] open(0xffffffff, "./Test", 0x0, 0x0) = 0x3 () (99 us) [ 15866] normalize_path("./Test", true, 0x7f98952b6610) = 0x0 No error () (131 us) [ 15866] read(0x3, 0x0, 0x7f98952b65d0, 0x40) = 0x40 () (60 us) [ 15866] read(0x3, 0x40, 0x7f98952b6a10, 0x230) = 0x230 () (55 us) [ 15866] reserve_address_range([0x600000], 0x7, 0x5000) = 0x0 No error () (89 us) [ 15866] map_file("Test_seg0ro", 0x7f98952b64f8, 0x1, 0x1000, 0x1003, 0x1, false, 0x3, 0x0) = 0x7ee35 () (102 us) [ 15866] map_file("Test_seg1ro", 0x7f98952b64f8, 0x1, 0x2000, 0x1003, 0x1, false, 0x3, 0x0) = 0x7ee36 () (95 us) [ 15866] map_file("Test_seg2ro", 0x7f98952b64f8, 0x1, 0x1000, 0x1003, 0x1, false, 0x3, 0x1000) = 0x7ee37 () (96 us) [ 15866] map_file("Test_seg3rw", 0x7f98952b64f8, 0x1, 0x1000, 0x3, 0x1, false, 0x3, 0x1000) = 0x80000005 () (100 us) [ 15866] unreserve_address_range(0xb6492a8000, 0x5000) = 0x0 No error () (54 us) [ 15866] debug_output("runtime_loader: /boot/home/Tests/Runtime/ABI/Linker/Test: Could not map image: Invalid Argument ") () (94 us) runtime_loader: /boot/home/Tests/Runtime/ABI/Linker/Test: Could not map image: Invalid Argument [ 15866] write(0x2, 0x0, 0x7f98952b6090, 0x60) = 0x60 () (66 us) [ 15866] close(0x3) = 0x0 No error () (52 us) [ 15866] loading_app_failed(0xffffffff) () (56 us)