도전2022
qemu-i386 테스트 본문
SMALL
Hello World 말고 다른 APPs을 테스트 해보자.
non-static : error 발생
1. 4칙 연삭 (OK)
2. coreutils 테스트
[ cut false ls pathchk sha224sum sync unexpand base64 date fmt md5sum pinky sha256sum tac uniq basename dd fold mkdir pr sha384sum tail unlink cat df groups mkfifo printenv sha512sum tee uptime chcon dir head mknod printf shred test users chgrp dircolors hostid mktemp ptx shuf timeout vdir chmod dirname id mv pwd sleep touch wc chown du install nice readlink sort tr who chroot echo join nl rm split true whoami cksum env kill nohup rmdir stat truncate yes comm expand link nproc runcon stdbuf tsort cp expr ln od seq stty tty csplit factor logname paste sha1sum sum uname |
non-static : error 발생
debian-gta02:~/test# qemu-i386 ls
/lib/ld-linux.so.2: No such file or directory
static compile
- ../coreutils-8.2/configure --prefix=/root/src/obj/bin2 CFLAGS=-static
- make, make install
-
test:
/lib/ld-linux.so.2: No such file or directory
static compile
- ../coreutils-8.2/configure --prefix=/root/src/obj/bin2 CFLAGS=-static
- make, make install
-
test:
- shell을 만들어서 테스트 진행
- 테스트 결과
debian-gta02:~/test2# file dir dir: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.6.15, not stripped debian-gta02:~/test2# qemu-i386 dir [ chgrp comm d\ du factor head kill md5sum mv b\ chmod cp date echo false hostid l\ mkdir nice base64 chown csplit dd env fmt i\ link mkfifo nl cat chroot cut df expand fold id ln mknod nohup chcon cksum d\ dir expr groups join ls mktemp debian-gta02:~/test2# |
debian-gta02:~/test2# file ls ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.6.15, not stripped debian-gta02:~/test2# qemu-i386 ls [ cp env id mktemp pr s sum tsort whoami b csplit expand join mv printf s sync tty yes base64 cut expr kill nice ptx seq t u cat d factor l nl pwd shred t uname chcon d false link nohup r shuf tac uniq chgrp date fmt ln nproc rm sleep tail unlink chmod dd fold ls od rmdir sort tee uptime chown df groups md5sum p runcon split test users chroot dir head mkdir p s stat touch vdir cksum du hostid mkfifo paste s stdbuf tr wc comm echo i mknod pinky s stty true who debian-gta02:~/test2# |
no FILE NAME non-static static 차이 --help
1 [ 85KB 599KB 514 O
2 base64 81KB 599KB 518 O
3 basename 63KB 594KB 531 O
4 cat 135KB 617KB 482 O
5 chcon 165KB 632KB 467 O
6 chgrp 156KB 669KB 513 O
7 chmod 147KB 623KB 476 O
8 chown 160KB 674KB 514 O
9 chroot 81KB 646KB 565 O
10 cksum 67KB 594KB 527 O
11 comm 81KB 603KB 522 O
12 cp 295KB 755KB 460 O
13 csplit 115KB 682KB 567 O
14 cut 114KB 609KB 495 O
15 date 146KB 633KB 487 O
16 dd 134KB 623KB 489 O
17 df 203KB 645KB 442 O
18 dir 300KB 747KB 447 O
19 dircolors 81KB 608KB 527 O
20 dirname 62KB 594KB 532 O
21 du 295KB 698KB 403 O
22 echo 64KB 590KB 526 O
23 env 64KB 594KB 530 O
24 expand 69KB 595KB 526 O
25 expr 91KB 680KB 589 O
26 factor 80KB 599KB 519 O
27 false 57KB 585KB 528 O
28 fmt 80KB 599KB 519 O
29 fold 70KB 595KB 525 O
30 groups 70KB 642KB 572 O
31 head 96KB 607KB 511 O
32 hostid 61KB 636KB 575 O
33 id 72KB 642KB 570 O
34 install 314KB 806KB 492 O
35 join 99KB 613KB 514 O
36 kill 71KB 600KB 529 O
37 link 61KB 590KB 529 O
38 ln 140KB 696KB 556 O
39 logname 61KB 604KB 543 O
40 ls 300KB 747KB 447 O
41 md5sum 87KB 608KB 521 O
42 mkdir 142KB 621KB 479 O
43 mkfifo 68KB 594KB 526 O
44 mknod 78KB 599KB 521 O
45 mktemp 101KB 609KB 508 O
46 mv 281KB 747KB 466 O
47 nice 70KB 598KB 528 O
48 nl 88KB 672KB 584 O
49 nohup 72KB 599KB 527 O
50 nproc 73KB 595KB 522 O
51 od 169KB 638KB 469 O
52 paste 69KB 594KB 525 O
53 pathchk 69KB 603KB 534 O
54 pinky 84KB 678KB 594 O
55 pr 147KB 631KB 484 O
56 printenv 59KB 590KB 531 O
57 printf 145KB 620KB 475 O
58 ptx 172KB 704KB 532 O
59 pwd 81KB 600KB 519 O
60 readlink 111KB 609KB 498 O
61 rm 171KB 697KB 526 O
62 rmdir 119KB 616KB 497 O
63 runcon 65KB 598KB 533 O
64 seq 120KB 620KB 500 O
65 sha1sum 91KB 608KB 517 O
66 sha224sum 98KB 616KB 518 O
67 sha256sum 98KB 616KB 518 O
68 sha384sum 158KB 688KB 530 O
69 sha512sum 158KB 688KB 530 O
70 shred 140KB 622KB 482 O
71 shuf 104KB 609KB 505 O
72 sleep 71KB 594KB 523 O
73 sort 248KB 677KB 429 O
74 split 153KB 622KB 469 O
75 stat 113KB 663KB 550 O
76 stdbuf 183KB 643KB 460 O
77 stty 153KB 636KB 483 O
78 sum 93KB 604KB 511 O
79 sync 60KB 590KB 530 O
80 tac 78KB 672KB 594 O
81 tail 155KB 630KB 475 O
82 tee 67KB 595KB 528 O
83 test 75KB 598KB 523 X
84 timeout 141KB 622KB 481 O
85 touch 121KB 622KB 501 O
86 tr 100KB 612KB 512 O
87 true 57KB 585KB 528 O
88 truncate 137KB 617KB 480 O
89 tsort 81KB 599KB 518 O
90 tty 59KB 594KB 535 O
91 uname 65KB 594KB 529 O
92 unexpand 70KB 599KB 529 O
93 uniq 96KB 608KB 512 O
94 unlink 61KB 590KB 529 O
95 uptime 95KB 617KB 522 O
96 users 70KB 600KB 530 O
97 vdir 300KB 747KB 447 O
98 wc 100KB 608KB 508 O
99 who 137KB 699KB 562 O
100 whoami 61KB 628KB 567 O
101 yes 60KB 590KB 530 O
LIST
'작업 > OvmStart(2010)' 카테고리의 다른 글
qemu-0.12.1 make (0) | 2010.01.13 |
---|---|
Wine 설치 (0) | 2009.12.30 |
[err]Option add : -static (0) | 2009.12.17 |
wine-1.1.33 --prefix="/bin" --without-freetype (0) | 2009.12.17 |
wine-1.1.33 소스 컴파일 (0) | 2009.12.17 |