|
|
1.1 root 1: #! /bin/sh
2: #
3: # Convert coff libc to a coff-encapsulated libc
4: # suitable for linking with the GNU linker.
5: #
6: # Extract all members of /lib/libc.a (using coff ar).
7: # Convert each using robotussin.
8: # Create new libc (using gnu ar) with members in the same order as coff libc.
9:
10: # set -e makes this script exit if any command gets an error
11:
12: set -e
13: mkdir tmp
14: cd tmp
15: /bin/ar x /lib/libc.a
16: for i in *.o
17: do
18: ../robotussin $i x
19: mv x $i
20: done
21: rm -f ../libc.a
22: ../ar rs ../libc.a `/bin/ar t /lib/libc.a`
23: cd ..
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.