Skip to content

Commit cce72e8

Browse files
Daniel EischenDaniel Eischen
authored andcommitted
Add symbol maps and initial symbol version definitions to libc.
Reviewed by: davidxu
1 parent 51f38c3 commit cce72e8

File tree

29 files changed

+3241
-0
lines changed

29 files changed

+3241
-0
lines changed

lib/libc/Versions.def

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# $FreeBSD$
2+
3+
# This is our first version; it depends on no other.
4+
FBSD_1.0 {
5+
};
6+
7+
# This is our private namespace. Any global interfaces that are
8+
# strictly for use only by other FreeBSD applications and libraries
9+
# are listed here. We use a separate namespace so we can write
10+
# simple ABI-checking tools.
11+
FBSDprivate {
12+
};

lib/libc/alpha/Symbol.map

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# $FreeBSD$
2+
3+
#
4+
# This only needs to contain symbols that are not listed in
5+
# symbol maps from other parts of libc (i.e., not found in
6+
# stdlib/Symbol.map, string/Symbol.map, sys/Symbol.map, ...).
7+
#
8+
FBSD_1.0 {
9+
# PSEUDO syscalls
10+
_exit;
11+
12+
__flt_rounds;
13+
fpgetmask;
14+
fpgetround;
15+
fpgetsticky;
16+
fpsetmask;
17+
fpsetround;
18+
__infinity;
19+
__nan;
20+
makecontext;
21+
modf;
22+
_setjmp;
23+
_longjmp;
24+
fabs;
25+
rfork_thread;
26+
setjmp;
27+
longjmp;
28+
sigsetjmp;
29+
siglongjmp;
30+
__htonl;
31+
htonl;
32+
__htons;
33+
htons;
34+
__ntohl;
35+
ntohl;
36+
__ntohs;
37+
ntohs;
38+
vfork;
39+
exect;
40+
fork;
41+
sbrk;
42+
};
43+
44+
#
45+
# FreeBSD private ABI
46+
#
47+
FBSDprivate {
48+
# PSEUDO syscalls
49+
__sys_getlogin;
50+
_getlogin;
51+
__sys_exit;
52+
53+
_set_tp;
54+
__makecontext;
55+
__signalcontext;
56+
signalcontext;
57+
___longjmp;
58+
__longjmp;
59+
__siglongjmp;
60+
__divqu;
61+
__divq;
62+
__divlu;
63+
__divl;
64+
__remqu;
65+
__remq;
66+
__remlu;
67+
__reml;
68+
__sys_vork;
69+
_vfork;
70+
__sys_fork;
71+
_fork;
72+
_end;
73+
curbrk;
74+
minbrk;
75+
brk;
76+
.cerror;
77+
};

lib/libc/amd64/Symbol.map

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# $FreeBSD$
2+
3+
#
4+
# This only needs to contain symbols that are not listed in
5+
# symbol maps from other parts of libc (i.e., not found in
6+
# stdlib/Symbol.map, string/Symbol.map, sys/Symbol.map, ...).
7+
#
8+
FBSD_1.0 {
9+
# PSEUDO syscalls
10+
_exit;
11+
12+
_setjmp;
13+
_longjmp;
14+
fabs;
15+
__flt_rounds;
16+
fpgetmask;
17+
fpgetprec;
18+
fpgetround;
19+
fpgetsticky;
20+
fpsetmask;
21+
fpsetprec;
22+
fpsetround;
23+
__infinity;
24+
__nan;
25+
makecontext;
26+
modf;
27+
rfork_thread;
28+
setjmp;
29+
longjmp;
30+
sigsetjmp;
31+
siglongjmp;
32+
htonl;
33+
__htonl;
34+
htons;
35+
__htons;
36+
ntohl;
37+
__ntohl;
38+
ntohs;
39+
__ntohs;
40+
amd64_get_fsbase;
41+
amd64_get_gsbase;
42+
amd64_set_fsbase;
43+
amd64_set_gsbase;
44+
brk;
45+
exect;
46+
sbrk;
47+
vfork;
48+
};
49+
50+
#
51+
# FreeBSD private ABI
52+
#
53+
FBSDprivate {
54+
# PSEUDO syscalls
55+
__sys_getlogin;
56+
_getlogin;
57+
__sys_exit;
58+
59+
_set_tp;
60+
___longjmp;
61+
__makecontext;
62+
__longjmp;
63+
__signalcontext;
64+
signalcontext;
65+
__siglongjmp;
66+
.curbrk;
67+
.minbrk;
68+
_brk;
69+
.cerror;
70+
_end;
71+
__sys_vfork;
72+
_vfork;
73+
};

lib/libc/arm/Symbol.map

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# $FreeBSD$
2+
3+
#
4+
# This only needs to contain symbols that are not listed in
5+
# symbol maps from other parts of libc (i.e., not found in
6+
# stdlib/Symbol.map, string/Symbol.map, sys/Symbol.map, ...).
7+
#
8+
FBSD_1.0 {
9+
# PSEUDO syscalls
10+
_exit;
11+
12+
_setjmp;
13+
_longjmp;
14+
alloca;
15+
fabs;
16+
__infinity;
17+
__nan;
18+
makecontext;
19+
modf;
20+
setjmp;
21+
longjmp;
22+
sigsetjmp;
23+
siglongjmp
24+
htonl;
25+
__htonl;
26+
htons;
27+
__htons;
28+
ntohl;
29+
__ntohl;
30+
ntohs;
31+
__ntohs;
32+
vfork;
33+
brk;
34+
cerror; # XXX - Should this be .cerror (see sys/cerror.S)?
35+
fork;
36+
sbrk;
37+
};
38+
39+
FBSDprivate {
40+
# PSEUDO syscalls
41+
__sys_getlogin;
42+
_getlogin;
43+
__sys_exit;
44+
45+
_set_tp;
46+
___longjmp;
47+
__umodsi3;
48+
__modsi3;
49+
__udivsi3;
50+
__divsi3;
51+
__makecontext;
52+
__longjmp;
53+
signalcontext;
54+
_signalcontext;
55+
__siglongjmp;
56+
__sys_vfork;
57+
_vfork;
58+
_brk;
59+
end; # XXX - Should this be _end (see sys/brk.S)?
60+
curbrk;
61+
minbrk;
62+
_brk;
63+
__sys_fork;
64+
_fork;
65+
_sbrk;
66+
};

lib/libc/compat-43/Symbol.map

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# $FreeBSD$
2+
3+
FBSD_1.0 {
4+
creat;
5+
gethostid;
6+
getwd;
7+
killpg;
8+
sethostid;
9+
setpgrp;
10+
setrgid;
11+
setruid;
12+
sigblock;
13+
sigpause;
14+
sigsetmask;
15+
sigvec;
16+
};
17+
18+
FBSDprivate {
19+
__creat;
20+
_creat;
21+
};

lib/libc/db/Symbol.map

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# $FreeBSD$
2+
3+
FBSD_1.0 {
4+
dbopen;
5+
dbm_open;
6+
dbm_close;
7+
dbm_fetch;
8+
dbm_firstkey;
9+
dbm_nextkey;
10+
dbm_delete;
11+
dbm_store;
12+
dbm_error;
13+
dbm_clearerr;
14+
dbm_dirfno;
15+
mpool_open;
16+
mpool_filter;
17+
mpool_new;
18+
mpool_get;
19+
mpool_put;
20+
mpool_close;
21+
mpool_sync;
22+
mpool_stat;
23+
};
24+
25+
FBSDprivate {
26+
__bt_open;
27+
__dbpanic;
28+
__hash_open;
29+
__rec_open;
30+
};

lib/libc/gdtoa/Symbol.map

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# $FreeBSD$
2+
3+
FBSD_1.0 {
4+
# Standard functions from contrib/gdtoa
5+
dtoa;
6+
freedtoa;
7+
g_Qfmt;
8+
g_ddfmt;
9+
g_dfmt;
10+
g_ffmt;
11+
g_xLfmt;
12+
g_xfmt;
13+
gdtoa;
14+
strtoIQ;
15+
strtoId;
16+
strtoIdd;
17+
strtoIf;
18+
strtoIx;
19+
strtoIxL;
20+
strtod;
21+
strtodI;
22+
strtodg;
23+
strtof;
24+
strtopQ;
25+
strtopd;
26+
strtopdd;
27+
strtopf;
28+
strtopx;
29+
strtopxL;
30+
strtorQ;
31+
strtord;
32+
strtordd;
33+
strtorf;
34+
strtorx;
35+
strtorxL;
36+
37+
# FreeBSD additions
38+
strtold;
39+
};

0 commit comments

Comments
 (0)