blob: bac6946458b8d2539a84445ead65e3bb072ec0bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
head 1.3;
access ;
symbols ;
locks ; strict;
comment @# @;
1.3
date 89.03.27.21.15.45; author gnu; state Exp;
branches ;
next 1.2;
1.2
date 89.03.27.20.18.28; author gnu; state Exp;
branches ;
next 1.1;
1.1
date 89.03.20.18.58.17; author gnu; state Exp;
branches ;
next ;
desc
@@
1.3
log
@Fix up "munch" so it generates a name that doesn't match its own
"grep" conventions. Change main so that it calls the new name,
and also doesn't use the conventions for functions that should NOT
be called by init.c.
@
text
@#! /bin/sh
# create an initialization procedure from a list of .o files
# Look in object files, find symbols including the string _initialize_,
# and call each one as a function.
echo '/* Do not modify this file. It is created automatically by "munch". */'
echo 'void init_all_files () {'
nm $* | egrep '_initialize_' | \
sed -e 's/^.*\(initialize_[a-zA-Z_0-9]*\).*$/ _\1 ();/' | \
sort -u
echo '}'
@
1.2
log
@Generic change: make it not care much about the output format of "nm".
Now as long as _initialize_foo is not touching any other
symbol or alphanumeric, we'll find it and use it.
@
text
@d8 1
a8 1
echo 'void initialize_all_files () {'
@
1.1
log
@Initial revision
@
text
@d4 2
d10 3
a12 1
nm -p $* | egrep 'T *__?initialize_' | sed -e 's/^.*T *_*\(.*\)/ _\1 ();/'
@
|