interplane.Get Omega
Read in your language

omega-bridge

Omega-first language interoperability: checked conversion backends and native language bindings

Brought by drakestapleton

branch main Branches Tags History

omega-bridge / evidence / native-freestanding-om2-nolibc / six-x86-commands.log

91 lines · 6682 bytes Raw Blame History
1~/work/cudastack/lanes/BridgeHostFreestanding/tools/native --target x86linux --freestanding /tmp/bh/freestanding-six-x86-new/freestanding /tmp/bh/freestanding-six-x86-new/sources/regalloc.om /tmp/bh/freestanding-six-x86-new/sources/regalloc_ir.om /tmp/bh/freestanding-six-x86-new/sources/regalloc_live.om /tmp/bh/freestanding-six-x86-new/sources/native.om /tmp/bh/freestanding-six-x86-new/sources/cubin.om /tmp/bh/freestanding-six-x86-new/sources/ampere.om
2rc 0
3tools/native: 6 unit(s) -> /tmp/bh/freestanding-six-x86-new/freestanding/omega_native.{c,h,o} + omega_api_decl.h, omega_api_defs.{c,o} (+ work/)
4
5~/work/cudastack/lanes/BridgeHostFreestanding/tools/native --target x86linux /tmp/bh/freestanding-six-x86-new/hosted /tmp/bh/freestanding-six-x86-new/sources/regalloc.om /tmp/bh/freestanding-six-x86-new/sources/regalloc_ir.om /tmp/bh/freestanding-six-x86-new/sources/regalloc_live.om /tmp/bh/freestanding-six-x86-new/sources/native.om /tmp/bh/freestanding-six-x86-new/sources/cubin.om /tmp/bh/freestanding-six-x86-new/sources/ampere.om
6rc 0
7tools/native: 6 unit(s) -> /tmp/bh/freestanding-six-x86-new/hosted/libomega_native.so + omega_native.{c,h,py,rs,zig,go} + omega_api.h, omega_api_decl.h, omega_api_defs.c (+ work/)
8
9x86_64-linux-gnu-gcc -r -nostdlib /tmp/bh/freestanding-six-x86-new/freestanding/omega_native.o /tmp/bh/freestanding-six-x86-new/freestanding/omega_api_defs.o -o /tmp/bh/freestanding-six-x86-new/freestanding.o
10rc 0
11
12x86_64-linux-gnu-nm -u /tmp/bh/freestanding-six-x86-new/freestanding.o
13rc 0
14
15x86_64-linux-gnu-gcc -std=gnu11 -O2 -Wall -Wextra -Werror -ffreestanding -fno-builtin -fno-stack-protector -DOMEGA_AGGREGATE_BARE=1 -I /tmp/bh/freestanding-six-x86-new/freestanding ~/work/cudastack/lanes/BridgeHostFreestanding/tests/native/freestanding/aggregate.c /tmp/bh/freestanding-six-x86-new/freestanding.o -nostdlib -static -no-pie -Wl,-e,_start -o /tmp/bh/freestanding-six-x86-new/bare
16rc 0
17
18x86_64-linux-gnu-nm -u /tmp/bh/freestanding-six-x86-new/bare
19rc 0
20
21readelf -lW /tmp/bh/freestanding-six-x86-new/bare
22rc 0
23
24Elf file type is EXEC (Executable file)
25Entry point 0x401040
26There are 9 program headers, starting at offset 64
27
28Program Headers:
29 Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
30 LOAD 0x000000 0x0000000000400000 0x0000000000400000 0x00027c 0x00027c R 0x1000
31 LOAD 0x001000 0x0000000000401000 0x0000000000401000 0x0c3a7d 0x0c3a7d R E 0x1000
32 LOAD 0x0c5000 0x00000000004c5000 0x00000000004c5000 0x001124 0x001124 R 0x1000
33 LOAD 0x0c6f00 0x00000000004c7f00 0x00000000004c7f00 0x000100 0x9674260 RW 0x1000
34 NOTE 0x000238 0x0000000000400238 0x0000000000400238 0x000020 0x000020 R 0x8
35 NOTE 0x000258 0x0000000000400258 0x0000000000400258 0x000024 0x000024 R 0x4
36 GNU_PROPERTY 0x000238 0x0000000000400238 0x0000000000400238 0x000020 0x000020 R 0x8
37 GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0x10
38 GNU_RELRO 0x0c6f00 0x00000000004c7f00 0x00000000004c7f00 0x000100 0x000100 R 0x1
39
40 Section to Segment mapping:
41 Segment Sections...
42 00 .note.gnu.property .note.gnu.build-id
43 01 .text
44 02 .rodata .eh_frame
45 03 .data.rel.ro .bss
46 04 .note.gnu.property
47 05 .note.gnu.build-id
48 06 .note.gnu.property
49 07
50 08 .data.rel.ro
51
52readelf -SW /tmp/bh/freestanding-six-x86-new/bare
53rc 0
54There are 12 section headers, starting at offset 0xc8610:
55
56Section Headers:
57 [Nr] Name Type Address Off Size ES Flg Lk Inf Al
58 [ 0] NULL 0000000000000000 000000 000000 00 0 0 0
59 [ 1] .note.gnu.property NOTE 0000000000400238 000238 000020 00 A 0 0 8
60 [ 2] .note.gnu.build-id NOTE 0000000000400258 000258 000024 00 A 0 0 4
61 [ 3] .text PROGBITS 0000000000401000 001000 0c3a7d 00 AX 0 0 16
62 [ 4] .rodata PROGBITS 00000000004c5000 0c5000 000479 00 A 0 0 32
63 [ 5] .eh_frame PROGBITS 00000000004c5480 0c5480 000ca4 00 A 0 0 8
64 [ 6] .data.rel.ro PROGBITS 00000000004c7f00 0c6f00 000100 00 WA 0 0 32
65 [ 7] .bss NOBITS 00000000004c8000 0c7000 9674160 00 WA 0 0 32
66 [ 8] .comment PROGBITS 0000000000000000 0c7000 00002d 01 MS 0 0 1
67 [ 9] .symtab SYMTAB 0000000000000000 0c7030 000e10 18 10 87 8
68 [10] .strtab STRTAB 0000000000000000 0c7e40 00075c 00 0 0 1
69 [11] .shstrtab STRTAB 0000000000000000 0c859c 000074 00 0 0 1
70Key to Flags:
71 W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
72 L (link order), O (extra OS processing required), G (group), T (TLS),
73 C (compressed), x (unknown), o (OS specific), E (exclude),
74 D (mbind), l (large), p (processor specific)
75
76~/.local/opt/qemu-oracle-10.0.14/build/qemu-x86_64 -L /usr/x86_64-linux-gnu /tmp/bh/freestanding-six-x86-new/bare
77rc 0
78stdout_hex 0000000000000000030000000000000002000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000001000000000000000002000000000000180000000000000000000000000000000100000000000000200000000000000063000000000000000000000000000000
79
80x86_64-linux-gnu-gcc -std=gnu11 -O2 -Wall -Wextra -Werror -ffreestanding -fno-builtin -fno-stack-protector -I /tmp/bh/freestanding-six-x86-new/hosted ~/work/cudastack/lanes/BridgeHostFreestanding/tests/native/freestanding/aggregate.c -L /tmp/bh/freestanding-six-x86-new/hosted -Wl,-rpath,/tmp/bh/freestanding-six-x86-new/hosted -lomega_native -o /tmp/bh/freestanding-six-x86-new/hosted-caller
81rc 0
82
83~/.local/opt/qemu-oracle-10.0.14/build/qemu-x86_64 -L /usr/x86_64-linux-gnu /tmp/bh/freestanding-six-x86-new/hosted-caller
84rc 0
85stdout_hex 0000000000000000030000000000000002000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000001000000000000000002000000000000180000000000000000000000000000000100000000000000200000000000000063000000000000000000000000000000
86
87x86_64-linux-gnu-gcc -std=gnu11 -O2 -Wall -Wextra -Werror -ffreestanding -fno-builtin -fno-stack-protector -DOMEGA_AGGREGATE_BARE=1 -DOMEGA_AGGREGATE_WRONG=1 -I /tmp/bh/freestanding-six-x86-new/freestanding ~/work/cudastack/lanes/BridgeHostFreestanding/tests/native/freestanding/aggregate.c /tmp/bh/freestanding-six-x86-new/freestanding.o -nostdlib -static -no-pie -Wl,-e,_start -o /tmp/bh/freestanding-six-x86-new/wrong
88rc 0
89
90~/.local/opt/qemu-oracle-10.0.14/build/qemu-x86_64 -L /usr/x86_64-linux-gnu /tmp/bh/freestanding-six-x86-new/wrong
91rc 90