1 | Linux From Scratch
|
---|
2 | Version SVN-20060414
|
---|
3 | 5.7. Adjusting the Toolchain
|
---|
4 | !!!CAUTION!!!
|
---|
5 |
|
---|
6 | [developer@lfs ~]$ ls -l
|
---|
7 | total 20
|
---|
8 | drwxr-xr-x 6 developer developer 4096 Apr 15 13:59 Desktop
|
---|
9 | drwxrwxr-x 3 developer developer 4096 Apr 16 09:35 ld-test
|
---|
10 | -rw-rw-r-- 1 developer developer 10240 Apr 16 09:36 ld-test.tar
|
---|
11 | [developer@lfs ~]$ cd ld-test
|
---|
12 | [developer@lfs ld-test]$ ls
|
---|
13 | copy-of-original-ld gccdumpmachine ld ld-new mvtest1 mvtest2 mvtest3
|
---|
14 | [developer@lfs ld-test]$ cat ld
|
---|
15 | the ORIGINAL ld file
|
---|
16 | [developer@lfs ld-test]$ cat ld-new
|
---|
17 | the NEW ld file
|
---|
18 | [developer@lfs ld-test]$ ls
|
---|
19 | copy-of-original-ld gccdumpmachine ld ld-new mvtest1 mvtest2 mvtest3
|
---|
20 | [developer@lfs ld-test]$ ./mvtest1
|
---|
21 | `./ld' -> `./ld-old'
|
---|
22 | [developer@lfs ld-test]$ ls
|
---|
23 | copy-of-original-ld gccdumpmachine ld-new ld-old mvtest1 mvtest2 mvtest3
|
---|
24 | [developer@lfs ld-test]$ ./mvtest2
|
---|
25 | `./ld-new' -> `./ld'
|
---|
26 | [developer@lfs ld-test]$ ls
|
---|
27 | copy-of-original-ld gccdumpmachine ld ld-old mvtest1 mvtest2 mvtest3
|
---|
28 | [developer@lfs ld-test]$ ./mvtest3
|
---|
29 | create symbolic link `./gccdumpmachine/ld' to `./ld'
|
---|
30 | [developer@lfs ld-test]$ ls
|
---|
31 | copy-of-original-ld gccdumpmachine ld ld-old mvtest1 mvtest2 mvtest3
|
---|
32 | [developer@lfs ld-test]$ ./mvtest1
|
---|
33 | `./ld' -> `./ld-old'
|
---|
34 | [developer@lfs ld-test]$ ./mvtest2
|
---|
35 | mv: cannot stat `./ld-new': No such file or directory
|
---|
36 | [developer@lfs ld-test]$ ./mvtest3
|
---|
37 | ln: `./gccdumpmachine/ld': File exists
|
---|
38 | [developer@lfs ld-test]$ which ld
|
---|
39 | /usr/bin/ld
|
---|
40 | [developer@lfs ld-test]$ ls
|
---|
41 | copy-of-original-ld gccdumpmachine ld-old mvtest1 mvtest2 mvtest3
|
---|
42 | [developer@lfs ld-test]$ cat ld-old
|
---|
43 | the NEW ld file
|
---|
44 | [developer@lfs ld-test]$
|
---|
45 |
|
---|
46 |
|
---|