From 6fad3aaf157b3ab3d64b99ca7c14751124c044dd Mon Sep 17 00:00:00 2001 From: Daniel Eischen Date: Mon, 13 Mar 2006 01:15:01 +0000 Subject: [PATCH] Add each directory's symbol map file to SYM_MAPS. --- lib/libc/alpha/Makefile.inc | 1 + lib/libc/amd64/Makefile.inc | 1 + lib/libc/arm/Makefile.inc | 1 + lib/libc/compat-43/Makefile.inc | 2 ++ lib/libc/db/Makefile.inc | 2 ++ lib/libc/gdtoa/Makefile.inc | 2 ++ lib/libc/gen/Makefile.inc | 2 ++ lib/libc/gmon/Makefile.inc | 2 ++ lib/libc/i386/Makefile.inc | 1 + lib/libc/ia64/Makefile.inc | 1 + lib/libc/locale/Makefile.inc | 2 ++ lib/libc/net/Makefile.inc | 2 ++ lib/libc/nls/Makefile.inc | 2 ++ lib/libc/posix1e/Makefile.inc | 2 ++ lib/libc/powerpc/Makefile.inc | 2 +- lib/libc/quad/Makefile.inc | 2 ++ lib/libc/regex/Makefile.inc | 2 ++ lib/libc/rpc/Makefile.inc | 2 ++ lib/libc/softfloat/Makefile.inc | 2 ++ lib/libc/sparc64/Makefile.inc | 1 + lib/libc/stdio/Makefile.inc | 2 ++ lib/libc/stdlib/Makefile.inc | 2 ++ lib/libc/stdtime/Makefile.inc | 2 ++ lib/libc/string/Makefile.inc | 2 ++ lib/libc/sys/Makefile.inc | 2 ++ lib/libc/uuid/Makefile.inc | 1 + lib/libc/xdr/Makefile.inc | 2 ++ lib/libc/yp/Makefile.inc | 2 ++ 28 files changed, 48 insertions(+), 1 deletion(-) diff --git a/lib/libc/alpha/Makefile.inc b/lib/libc/alpha/Makefile.inc index c01413623223..28985590c299 100644 --- a/lib/libc/alpha/Makefile.inc +++ b/lib/libc/alpha/Makefile.inc @@ -10,3 +10,4 @@ NO_QUAD= # On Alpha, long double is just double precision. MDSRCS+=machdep_ldisd.c +SYM_MAPS+=${.CURDIR}/alpha/Symbol.map diff --git a/lib/libc/amd64/Makefile.inc b/lib/libc/amd64/Makefile.inc index 954a02552342..43bce08bbd64 100644 --- a/lib/libc/amd64/Makefile.inc +++ b/lib/libc/amd64/Makefile.inc @@ -11,3 +11,4 @@ NO_QUAD= # Long double is 80 bits GDTOASRCS+=strtopx.c MDSRCS+=machdep_ldisx.c +SYM_MAPS+=${.CURDIR}/amd64/Symbol.map diff --git a/lib/libc/arm/Makefile.inc b/lib/libc/arm/Makefile.inc index 90dde632d053..666cadc276d4 100644 --- a/lib/libc/arm/Makefile.inc +++ b/lib/libc/arm/Makefile.inc @@ -9,3 +9,4 @@ CFLAGS+=-DSOFTFLOAT # Long double is just double precision. MDSRCS+=machdep_ldisd.c +SYM_MAPS+=${.CURDIR}/arm/Symbol.map diff --git a/lib/libc/compat-43/Makefile.inc b/lib/libc/compat-43/Makefile.inc index 2eca9535d96e..836f0a60ca50 100644 --- a/lib/libc/compat-43/Makefile.inc +++ b/lib/libc/compat-43/Makefile.inc @@ -7,6 +7,8 @@ SRCS+= creat.c gethostid.c getwd.c killpg.c sethostid.c setpgrp.c \ setrgid.c setruid.c sigcompat.c +SYM_MAPS+=${.CURDIR}/compat-43/Symbol.map + MAN+= creat.2 killpg.2 sigpause.2 sigsetmask.2 sigvec.2 MAN+= gethostid.3 setruid.3 diff --git a/lib/libc/db/Makefile.inc b/lib/libc/db/Makefile.inc index 72fbb4f4a8c6..bbfb7e77f7f9 100644 --- a/lib/libc/db/Makefile.inc +++ b/lib/libc/db/Makefile.inc @@ -9,3 +9,5 @@ CFLAGS+=-D__DBINTERFACE_PRIVATE .include "${.CURDIR}/db/man/Makefile.inc" .include "${.CURDIR}/db/mpool/Makefile.inc" .include "${.CURDIR}/db/recno/Makefile.inc" + +SYM_MAPS+=${.CURDIR}/db/Symbol.map diff --git a/lib/libc/gdtoa/Makefile.inc b/lib/libc/gdtoa/Makefile.inc index 399c3a8309ea..dce7dc37b11e 100644 --- a/lib/libc/gdtoa/Makefile.inc +++ b/lib/libc/gdtoa/Makefile.inc @@ -8,6 +8,8 @@ GDTOASRCS+=dmisc.c dtoa.c gdtoa.c gethex.c gmisc.c \ hd_init.c hexnan.c misc.c smisc.c \ strtod.c strtodg.c strtof.c strtord.c sum.c ulp.c +SYM_MAPS+=${.CURDIR}/gdtoa/Symbol.map + CFLAGS+=-I${.CURDIR}/../../contrib/gdtoa .for src in ${GDTOASRCS} diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc index 44f0cde9b22f..af92c63dbe24 100644 --- a/lib/libc/gen/Makefile.inc +++ b/lib/libc/gen/Makefile.inc @@ -33,6 +33,8 @@ SRCS+= __xuname.c _pthread_stubs.c _rand48.c _spinlock_stub.c _thread_init.c \ usleep.c utime.c valloc.c vis.c wait.c wait3.c waitpid.c \ wordexp.c +SYM_MAPS+=${.CURDIR}/gen/Symbol.map + # machine-dependent gen sources .if exists(${.CURDIR}/${MACHINE_ARCH}/gen/Makefile.inc) .include "${.CURDIR}/${MACHINE_ARCH}/gen/Makefile.inc" diff --git a/lib/libc/gmon/Makefile.inc b/lib/libc/gmon/Makefile.inc index 535e7dee2557..2b353d8be7ec 100644 --- a/lib/libc/gmon/Makefile.inc +++ b/lib/libc/gmon/Makefile.inc @@ -6,6 +6,8 @@ SRCS+= gmon.c mcount.c +SYM_MAPS+=${.CURDIR}/gmon/Symbol.map + MAN+= moncontrol.3 MLINKS+=moncontrol.3 monstartup.3 diff --git a/lib/libc/i386/Makefile.inc b/lib/libc/i386/Makefile.inc index 50f2f0d0b3b1..05b07ccff577 100644 --- a/lib/libc/i386/Makefile.inc +++ b/lib/libc/i386/Makefile.inc @@ -3,3 +3,4 @@ # Long double is 80 bits GDTOASRCS+=strtopx.c MDSRCS+=machdep_ldisx.c +SYM_MAPS+=${.CURDIR}/i386/Symbol.map diff --git a/lib/libc/ia64/Makefile.inc b/lib/libc/ia64/Makefile.inc index aef1c282ca52..4ba7d6822c5c 100644 --- a/lib/libc/ia64/Makefile.inc +++ b/lib/libc/ia64/Makefile.inc @@ -11,3 +11,4 @@ NO_QUAD= # Long double is 80 bits GDTOASRCS+=strtopx.c MDSRCS+=machdep_ldisx.c +SYM_MAPS+=${.CURDIR}/ia64/Symbol.map diff --git a/lib/libc/locale/Makefile.inc b/lib/libc/locale/Makefile.inc index af9b0cacd766..24ac90405005 100644 --- a/lib/libc/locale/Makefile.inc +++ b/lib/libc/locale/Makefile.inc @@ -22,6 +22,8 @@ SRCS+= big5.c btowc.c collate.c collcmp.c euc.c fix_grouping.c \ wcstoul.c wcstoull.c wcstoumax.c wctob.c wctomb.c wctrans.c wctype.c \ wcwidth.c +SYM_MAPS+=${.CURDIR}/locale/Symbol.map + MAN+= btowc.3 \ ctype.3 digittoint.3 isalnum.3 isalpha.3 isascii.3 isblank.3 iscntrl.3 \ isdigit.3 isgraph.3 isideogram.3 islower.3 isphonogram.3 isprint.3 \ diff --git a/lib/libc/net/Makefile.inc b/lib/libc/net/Makefile.inc index 6d8f0f6b37f1..a17612335ca1 100644 --- a/lib/libc/net/Makefile.inc +++ b/lib/libc/net/Makefile.inc @@ -21,6 +21,8 @@ SRCS+= addr2ascii.c ascii2addr.c base64.c ether_addr.c eui64.c \ res_init.c res_mkquery.c res_mkupdate.c res_query.c res_send.c \ res_update.c rthdr.c send.c sockatmark.c vars.c +SYM_MAPS+=${.CURDIR}/net/Symbol.map + CFLAGS+=-DINET6 -I${.OBJDIR} YFLAGS+=-p_nsyy diff --git a/lib/libc/nls/Makefile.inc b/lib/libc/nls/Makefile.inc index 9adab3d647fa..90a67414d03f 100644 --- a/lib/libc/nls/Makefile.inc +++ b/lib/libc/nls/Makefile.inc @@ -5,4 +5,6 @@ SRCS+= msgcat.c +SYM_MAPS+=${.CURDIR}/nls/Symbol.map + MAN+= catclose.3 catgets.3 catopen.3 diff --git a/lib/libc/posix1e/Makefile.inc b/lib/libc/posix1e/Makefile.inc index 5bd119fc8a68..91422d4c21d2 100644 --- a/lib/libc/posix1e/Makefile.inc +++ b/lib/libc/posix1e/Makefile.inc @@ -22,6 +22,8 @@ SRCS+= acl_calc_mask.c \ mac_get.c \ mac_set.c +SYM_MAPS+=${.CURDIR}/posix1e/Symbol.map + MAN+= acl.3 \ acl_add_perm.3 \ acl_calc_mask.3 \ diff --git a/lib/libc/powerpc/Makefile.inc b/lib/libc/powerpc/Makefile.inc index 605f9f4a9902..453726a670be 100644 --- a/lib/libc/powerpc/Makefile.inc +++ b/lib/libc/powerpc/Makefile.inc @@ -2,4 +2,4 @@ # Long double is 64-bits MDSRCS+=machdep_ldisd.c - +SYM_MAPS+=${.CURDIR}/powerpc/Symbol.map diff --git a/lib/libc/quad/Makefile.inc b/lib/libc/quad/Makefile.inc index c2e225561934..281eb7ed73c6 100644 --- a/lib/libc/quad/Makefile.inc +++ b/lib/libc/quad/Makefile.inc @@ -17,3 +17,5 @@ SRCS+= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c fixdfdi.c \ xordi3.c .endif + +SYM_MAP+=${.CURDIR}/quad/Symbol.map diff --git a/lib/libc/regex/Makefile.inc b/lib/libc/regex/Makefile.inc index 221400dbaea2..a2e23ebaf903 100644 --- a/lib/libc/regex/Makefile.inc +++ b/lib/libc/regex/Makefile.inc @@ -8,6 +8,8 @@ CFLAGS+=-DPOSIX_MISTAKE SRCS+= regcomp.c regerror.c regexec.c regfree.c +SYM_MAPS+=${.CURDIR}/regex/Symbol.map + MAN+= regex.3 MAN+= re_format.7 diff --git a/lib/libc/rpc/Makefile.inc b/lib/libc/rpc/Makefile.inc index 93f5a6abd286..dceecc7a4c80 100644 --- a/lib/libc/rpc/Makefile.inc +++ b/lib/libc/rpc/Makefile.inc @@ -25,6 +25,8 @@ SRCS+= rtime.c # generated sources SRCS+= crypt_clnt.c crypt_xdr.c crypt.h +SYM_MAPS+=${.CURDIR}/rpc/Symbol.map + CFLAGS+= -DBROKEN_DES -DPORTMAP -DDES_BUILTIN CFLAGS+= -I${.CURDIR}/rpc diff --git a/lib/libc/softfloat/Makefile.inc b/lib/libc/softfloat/Makefile.inc index 5e4091653b9c..c78676182657 100644 --- a/lib/libc/softfloat/Makefile.inc +++ b/lib/libc/softfloat/Makefile.inc @@ -16,3 +16,5 @@ SRCS+= fpgetround.c fpsetround.c fpgetmask.c fpsetmask.c \ SRCS+= eqsf2.c nesf2.c gtsf2.c gesf2.c ltsf2.c lesf2.c negsf2.c \ eqdf2.c nedf2.c gtdf2.c gedf2.c ltdf2.c ledf2.c negdf2.c \ unordsf2.c unorddf2.c + +SYM_MAPS+= ${.CURDIR}/softfloat/Symbol.map diff --git a/lib/libc/sparc64/Makefile.inc b/lib/libc/sparc64/Makefile.inc index d47f8865b326..063ceaf4c4ae 100644 --- a/lib/libc/sparc64/Makefile.inc +++ b/lib/libc/sparc64/Makefile.inc @@ -13,3 +13,4 @@ NO_QUAD= # Long double is quad precision GDTOASRCS+=strtopQ.c MDSRCS+=machdep_ldisQ.c +SYM_MAPS+=${.CURDIR}/sparc64/Symbol.map diff --git a/lib/libc/stdio/Makefile.inc b/lib/libc/stdio/Makefile.inc index 357bfa9360c6..d49e2fa41086 100644 --- a/lib/libc/stdio/Makefile.inc +++ b/lib/libc/stdio/Makefile.inc @@ -27,6 +27,8 @@ SRCS+= xprintf.c xprintf_float.c xprintf_int.c xprintf_str.c SRCS+= xprintf_errno.c xprintf_hexdump.c xprintf_quote.c SRCS+= xprintf_time.c xprintf_vis.c +SYM_MAPS+= ${.CURDIR}/stdio/Symbol.map + MAN+= fclose.3 ferror.3 fflush.3 fgetln.3 fgets.3 fgetwln.3 fgetws.3 \ flockfile.3 \ fopen.3 fputs.3 \ diff --git a/lib/libc/stdlib/Makefile.inc b/lib/libc/stdlib/Makefile.inc index 451663760b67..29bd49287bc6 100644 --- a/lib/libc/stdlib/Makefile.inc +++ b/lib/libc/stdlib/Makefile.inc @@ -13,6 +13,8 @@ MISRCS+=_Exit.c a64l.c abort.c abs.c atexit.c atof.c atoi.c atol.c atoll.c \ strtol.c strtoll.c strtoq.c strtoul.c strtoull.c strtoumax.c strtouq.c \ system.c tdelete.c tfind.c tsearch.c twalk.c +SYM_MAPS+= ${.CURDIR}/stdlib/Symbol.map + # machine-dependent stdlib sources .if exists(${.CURDIR}/${MACHINE_ARCH}/stdlib/Makefile.inc) .include "${.CURDIR}/${MACHINE_ARCH}/stdlib/Makefile.inc" diff --git a/lib/libc/stdtime/Makefile.inc b/lib/libc/stdtime/Makefile.inc index 003b62b453e9..a58a8a2ae815 100644 --- a/lib/libc/stdtime/Makefile.inc +++ b/lib/libc/stdtime/Makefile.inc @@ -6,6 +6,8 @@ SRCS+= asctime.c difftime.c localtime.c strftime.c strptime.c timelocal.c \ time32.c +SYM_MAPS+= ${.CURDIR}/stdtime/Symbol.map + MAN+= ctime.3 strftime.3 strptime.3 time2posix.3 MAN+= tzfile.5 diff --git a/lib/libc/string/Makefile.inc b/lib/libc/string/Makefile.inc index 77fe8e0da6be..6d64ea5a08c9 100644 --- a/lib/libc/string/Makefile.inc +++ b/lib/libc/string/Makefile.inc @@ -20,6 +20,8 @@ MISRCS+=bcmp.c bcopy.c bzero.c ffs.c ffsl.c fls.c flsl.c index.c memccpy.c \ wmemcmp.c \ wmemcpy.c wmemmove.c wmemset.c +SYM_MAPS+= ${.CURDIR}/string/Symbol.map + # machine-dependent string sources .if exists(${.CURDIR}/${MACHINE_ARCH}/string/Makefile.inc) diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index 50783723b780..b101d788e7ca 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -43,6 +43,8 @@ SPSEUDO= ${PSEUDO:S/.o/.S/} SRCS+= ${SASM} ${SPSEUDO} +SYM_MAPS+= ${.CURDIR}/sys/Symbol.map + # Generated files CLEANFILES+= ${SASM} ${SPSEUDO} diff --git a/lib/libc/uuid/Makefile.inc b/lib/libc/uuid/Makefile.inc index 022d55666414..d2ef5213060e 100644 --- a/lib/libc/uuid/Makefile.inc +++ b/lib/libc/uuid/Makefile.inc @@ -6,6 +6,7 @@ SRCS+= uuid_compare.c uuid_create.c uuid_create_nil.c uuid_equal.c \ uuid_from_string.c uuid_hash.c uuid_is_nil.c uuid_to_string.c +SYM_MAPS+= ${.CURDIR}/uuid/Symbol.map MAN+= uuid.3 MLINKS+=uuid.3 uuid_compare.3 diff --git a/lib/libc/xdr/Makefile.inc b/lib/libc/xdr/Makefile.inc index 60bd69864d24..2d360ac6f533 100644 --- a/lib/libc/xdr/Makefile.inc +++ b/lib/libc/xdr/Makefile.inc @@ -5,6 +5,8 @@ SRCS+= xdr.c xdr_array.c xdr_float.c xdr_mem.c \ xdr_rec.c xdr_reference.c xdr_stdio.c +SYM_MAPS+= ${.CURDIR}/xdr/Symbol.map + MAN+= xdr.3 MLINKS+= rpc_xdr.3 xdr_accepted_reply.3 \ diff --git a/lib/libc/yp/Makefile.inc b/lib/libc/yp/Makefile.inc index 0ce6dae06403..842e63eb08da 100644 --- a/lib/libc/yp/Makefile.inc +++ b/lib/libc/yp/Makefile.inc @@ -7,6 +7,8 @@ SRCS+= xdryp.c yp.h yp_xdr.c yplib.c CLEANFILES+= yp.h yp_xdr.c +SYM_MAPS+= ${.CURDIR}/yp/Symbol.map + RPCSRC= ${DESTDIR}/usr/include/rpcsvc/yp.x RPCGEN= rpcgen -C