OpenBSD CVS

CVS log for src/lib/libc/Makefile


[BACK] Up to [local] / src / lib / libc

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.42 / (download) - annotate - [select for diffs], Tue Nov 12 04:38:27 2019 UTC (4 years, 6 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, HEAD
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

Now that libc.so has only five PLT entries on almost all our archs,
link it with -znow

ok kettenis@ deraadt@ jca@

Revision 1.41 / (download) - annotate - [select for diffs], Sun Jun 2 01:03:01 2019 UTC (5 years ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.40: +2 -1 lines
Diff to previous 1.40 (colored)

Complete the ld.so boot cleanup: move most libc initialization from
_csu_finish() to _libc_preinit(), which is an .init_array function
in shared libc (and mark it INITFIRST) or a .preinit_array function
in static libc, grabbing the _dl_cb callback there from ld.so.  Then
in _csu_finish(), invoke the dl_clean_boot() callback to free ld.so's
startup bits before main() gets control.

Other cleanups this permits:
 - move various startup structures into .data.rel.ro
 - the dl* stubs in libc can be strong and call the callbacks provided
   via _dl_cb
 - no longer need to conditionalize dlctl() calls on presence of _DYNAMIC

original concept and full diff ok kettenis@
ok deraadt@

Revision 1.40 / (download) - annotate - [select for diffs], Sun Jan 22 23:56:44 2017 UTC (7 years, 4 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.39: +7 -2 lines
Diff to previous 1.39 (colored)

Link libc with compiler_rt not libgcc if COMPILER_VERSION is clang.

This is not a list of archs with compiler_rt as it is intended that
any arch switching to clang will have the required md bits added to
compiler_rt first.

ok kettenis@ patrick@

Revision 1.39 / (download) - annotate - [select for diffs], Tue Apr 26 14:49:53 2016 UTC (8 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.38: +2 -1 lines
Diff to previous 1.38 (colored)

Enable LIBREBUILD to construct libc.so.*.a

Revision 1.38 / (download) - annotate - [select for diffs], Tue Nov 10 04:14:03 2015 UTC (8 years, 7 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

libc.so can't be unloaded, so move the hidden atexit() and pthread_atfork()
stubs for the executable from crtbegin.o into libc, which lets them be
excluded from static links that don't use them.
For this, drop the normal crt{begin,end}S.o from libc.so: the .init and .fini
sections for libc aren't called at the right times anyway, so it's good that
they're unused.  libc.so just needs __guard_local and the .note.openbsd.ident
section, so add them to stack_protector.c for now (this will be improved)

"good time" deraadt@

Revision 1.37 / (download) - annotate - [select for diffs], Sun Oct 25 10:22:09 2015 UTC (8 years, 7 months ago) by bluhm
Branch: MAIN
Changes since 1.36: +1 -11 lines
Diff to previous 1.36 (colored)

The only thing that was translated into multiple languages in OpenBSD
are the errno messages and signal names.  Everything else is in
English.  We are not planning to translate more text.  Running a
mixed system with less than 1% of the text in native language makes
no sense.  So remove the NLS support from libc messages.  The
catopen(3) functions stay as they are.
OK stsp@ mpi@

Revision 1.36 / (download) - annotate - [select for diffs], Sat Aug 29 06:08:49 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

Add Symbols.map to CLEANFILES

Revision 1.35 / (download) - annotate - [select for diffs], Sat Aug 22 19:40:06 2015 UTC (8 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.34: +11 -1 lines
Diff to previous 1.34 (colored)

Explicitly list the symbols permitted to be exported by libc.
This is primed with the current list of exported symbols so it doesn't
change the ABI yet, but will prevent unintentional additions in the future
and sets the stage for reductions.

ok deraadt@ kettenis@

Revision 1.34 / (download) - annotate - [select for diffs], Mon Jun 9 20:47:10 2014 UTC (10 years ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.33: +1 -25 lines
Diff to previous 1.33 (colored)

Nuke the machinery to sync libkern with libc, it's not been used in the
last 15 years and there is no point to use it in the future.

From Jean-Philippe Ouellet

Revision 1.33 / (download) - annotate - [select for diffs], Wed May 21 01:17:52 2014 UTC (10 years ago) by tedu
Branch: MAIN
Changes since 1.32: +2 -1 lines
Diff to previous 1.32 (colored)

warn about implicit. misspelled function names in libc are deadly.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Jun 1 21:26:17 2013 UTC (11 years ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.31: +6 -2 lines
Diff to previous 1.31 (colored)

Fix catopen(3) for UTF-8 locales and update the implementation to POSIX-2008.

Catalogs had an arbitrary character set which was used regardless of locale.
Add UTF-8-encoded catalogs for libc error messages, and rename existing ones
to indicate their character sets. catopen(3) now chooses a catalog which
matches the locale's encoding, if available.

help & ok matthew, man page bits ok jmc, input from naddy and bluhm

Revision 1.31 / (download) - annotate - [select for diffs], Wed Aug 15 18:08:22 2012 UTC (11 years, 9 months ago) by matthew
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.30: +2 -1 lines
Diff to previous 1.30 (colored)

A couple small but long anticipated changes:

  - Link libpthread.so with -znodlopen.  Because libpthread overrides
    the weak symbols in libc, we can't allow it to be dynamically
    loaded or else libc's weak symbols might have already been
    resolved by ld.so.  (Also, major bump because this is technically
    a backwards incompat change in behavior, although dlopen()ing
    libpthread never really worked.)

  - Link libc.so with -nodefaultlibs -lgcc.  This ensures that libc
    doesn't try to link against itself (which ld.so wouldn't like).

  - Change GCC 4 to link shared objects with -lpthread and -lc as
    appropriate, now that there's no issues with doing so.  This means
    that it's no longer necessary to patch software to use -pthread
    instead of -lpthread.  (Ports tree rejoice!)

Also, to preemptively answer this question: No, this does not
eliminate the need for LD_PRELOAD=libpthread.so.  That's a separate
issue that won't be resolved until we eliminate libc's weak symbols.

Discussed extensively on email and icb over the past few months.
ok deraadt

Revision 1.30 / (download) - annotate - [select for diffs], Thu Aug 2 13:38:38 2012 UTC (11 years, 10 months ago) by okan
Branch: MAIN
Changes since 1.29: +1 -3 lines
Diff to previous 1.29 (colored)

remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.

ok guenther@

Revision 1.29 / (download) - annotate - [select for diffs], Wed Feb 3 20:49:00 2010 UTC (14 years, 4 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.28: +4 -4 lines
Diff to previous 1.28 (colored)

Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependent
files or directories when applicable.
The inspiration and name of MACHINE_CPU come from NetBSD, although the way to
provide it to Makefiles is completely different.
ok kettenis@

Revision 1.28 / (download) - annotate - [select for diffs], Tue Nov 24 20:11:08 2009 UTC (14 years, 6 months ago) by mk
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

Add `da.msg'.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:59 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.26: +1 -7 lines
Diff to previous 1.26 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.26 / (download) - annotate - [select for diffs], Tue Mar 14 09:19:37 2006 UTC (18 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

add italian nls; from jwk@xtf.it

Revision 1.25 / (download) - annotate - [select for diffs], Thu Nov 24 20:49:14 2005 UTC (18 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (colored)

use WANTLINT= (on all architectures)

Revision 1.24 / (download) - annotate - [select for diffs], Thu Sep 29 12:37:35 2005 UTC (18 years, 8 months ago) by uwe
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

use tabs instead of spaces in tags file

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jun 29 14:05:08 2005 UTC (18 years, 11 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.22: +3 -1 lines
Diff to previous 1.22 (colored)

only include copy-to-libkern-* targets if making copy-to-libkern to avoid zombie dependancies elsewhere

Revision 1.22 / (download) - annotate - [select for diffs], Wed Jan 28 17:58:12 2004 UTC (20 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

oops

Revision 1.21 / (download) - annotate - [select for diffs], Wed Jan 28 13:53:09 2004 UTC (20 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.20: +3 -2 lines
Diff to previous 1.20 (colored)

toast long line

Revision 1.20 / (download) - annotate - [select for diffs], Thu Nov 20 23:23:09 2003 UTC (20 years, 6 months ago) by avsm
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

remove -Werror from userland builds, to give us a chance to
use more verbose warning options if desired.
ok millert@, henning@, david@

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jul 15 19:41:10 2002 UTC (21 years, 11 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

suppress ctags warnings; millert@ ok

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jun 18 18:08:14 2001 UTC (22 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored)

compile libc with -Werror since any warnings gcc produces without extra -Wfoo directives is something we care about

Revision 1.17 / (download) - annotate - [select for diffs], Wed Oct 4 06:06:00 2000 UTC (23 years, 8 months ago) by d
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

teach tags about SYSENTRY

Revision 1.16 / (download) - annotate - [select for diffs], Fri Nov 20 11:18:28 1998 UTC (25 years, 6 months ago) by d
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.15: +4 -51 lines
Diff to previous 1.15 (colored)

Add thread-safety to libc, so that libc_r will build (on i386 at least).
All POSIX libc api now there (to P1003.1c/D10)
  (more md stuff is needed for other libc/arch/*)
  (setlogin is no longer a special syscall)
Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS).
Doc some re-entrant routines
Add libc_r to intro(3)
dig() uses some libc srcs and an extra -I was needed there.
Add more md stuff to libc_r.
Update includes for the pthreads api
Update libc_r TODO

Revision 1.15 / (download) - annotate - [select for diffs], Sat Aug 8 04:12:16 1998 UTC (25 years, 10 months ago) by form
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

add russian messages support

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jun 18 10:17:44 1997 UTC (26 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

catalogs from netbsd

Revision 1.13 / (download) - annotate - [select for diffs], Sun Apr 27 20:56:07 1997 UTC (27 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

COPY -> INSTALL_COPY and STRIP -> INSTALL_STRIP
This fixes namespace problems where STRIP is sometimes used as
the name of the strip(1) to use and other times used as
the flag to send install(1) when stripping (or not).
COPY doesn't have this problem (yet) but was poorly named.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Apr 19 21:26:17 1997 UTC (27 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

Changed ``defined(KERBEROS)'' to ``(${KERBEROS} == "yes")''
Same change doen for SKEY, YP, and KERBEROS5.  This allows
people to override those setting in /etc/mk.conf.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Dec 8 15:22:24 1996 UTC (27 years, 6 months ago) by downsj
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

install -> ${INSTALL}, -c -> ${COPY}

Revision 1.10 / (download) - annotate - [select for diffs], Mon Sep 30 05:32:42 1996 UTC (27 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

Added subdir "hash"

Revision 1.9 / (download) - annotate - [select for diffs], Sun Sep 15 10:09:06 1996 UTC (27 years, 9 months ago) by tholo
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Add a couple of syscalls; bring more prototypes into scope

Revision 1.8 / (download) - annotate - [select for diffs], Thu Sep 5 12:56:10 1996 UTC (27 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored)

bsd.own.mk before YP test

Revision 1.7 / (download) - annotate - [select for diffs], Wed Sep 4 22:52:00 1996 UTC (27 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +7 -2 lines
Diff to previous 1.6 (colored)

permit YP to be compiled out using flag in bsd.own.mk; pr#15, peter@demon.net

Revision 1.6 / (download) - annotate - [select for diffs], Mon Aug 19 08:10:10 1996 UTC (27 years, 9 months ago) by tholo
Branch: MAIN
Changes since 1.5: +1 -2 lines
Diff to previous 1.5 (colored)

Fix RCS ids
Make sure everything uses {SYS,}LIBC_SCCS properly

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jun 3 22:20:31 1996 UTC (28 years ago) by niklas
Branch: MAIN
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)

Add md[245] routines in libc/md, remove md5 from libc/crypt.  Add $OpenBSD$

Revision 1.4 / (download) - annotate - [select for diffs], Mon Mar 25 23:31:14 1996 UTC (28 years, 2 months ago) by tholo
Branch: MAIN
Changes since 1.3: +2 -0 lines
Diff to previous 1.3 (colored)

Add support for building lint(1) library

Revision 1.3 / (download) - annotate - [select for diffs], Fri Dec 15 02:39:07 1995 UTC (28 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +1 -0 lines
Diff to previous 1.2 (colored)

look for additional sources in crypt/

Revision 1.2 / (download) - annotate - [select for diffs], Thu Dec 14 02:00:51 1995 UTC (28 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

from netbsd:
Added spanish language message catalog from Jesus M. Gonzalez <jgb@ordago.uc3m.es>

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:41:19 1995 UTC (28 years, 8 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:41:19 1995 UTC (28 years, 8 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.