FreeBSD src
Go to file
Konstantin Belousov 51015e6d0f csu: move common code to libc
Why? Most trivial point, it shaves around 600 bytes from the dynamic
binaries on amd64. Less trivial, the removed code is no longer part of
the ABI, and we can ship updates to it with libc updates. Right now most
of the csu is linked into the binaries and require us to do somewhat
tricky ABI compat when it needs to change. For instance, the init_array
change would be much simpler and does not require note tagging if we
have init calling code in libc.

This could be improved more, by splitting dynamic and static
initialization. For instance, &_DYNAMIC tests can be removed then.
Such change, nonetheless, would require building libc three times.
I left this for later, after this change stabilizes, if ever.

Reviewed by:	markj
Discussed with:	jrtc27 (some objections, see the review), imp
Tested by:	markj (aarch64)
Sponsored by:	The FreeBSD Foundation
MFC after:	3 weeks
Differential revision:	https://reviews.freebsd.org/D37220
2023-03-12 00:50:03 +02:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github Fix typo: messages missing an 'a'. 2023-03-01 16:34:43 -07:00
bin uuidgen(1): fix another typo 2023-03-06 09:03:52 +01:00
cddl ctf: Remove unused function prototype for getpname() 2023-02-26 12:18:25 +08:00
contrib netbsd-tests: Remove some pointless sleeps from message queue tests 2023-03-10 17:06:46 -05:00
crypto heimdal: Fix CVE-2022-4152, signature validation error 2023-03-09 17:18:49 -08:00
etc tftp: Add tests. 2023-03-10 13:25:16 +00:00
gnu gnu diff3: apply patch to committed src, rather than at build time 2022-11-13 21:33:40 -05:00
include include: Remove no longer existing netgraph/atm 2023-03-09 21:39:41 +00:00
kerberos5 kerberos5: retire now-unused MIPS support 2022-11-02 13:16:18 -04:00
lib csu: move common code to libc 2023-03-12 00:50:03 +02:00
libexec tftpd: Gracefully skip tests if networking is not enabled. 2023-03-10 13:25:16 +00:00
release ARM release build: enable IPv6 SLAAC by default 2023-02-12 22:32:16 +01:00
rescue rescue: Fix link order of SSL libraries and fetch. 2023-02-02 09:23:02 -08:00
sbin nvmecontrol: Fix default ns create parameters. 2023-03-09 10:19:00 -05:00
secure OpenSSL: Regen manual pages for OpenSSL 1.1.1t 2023-02-07 14:01:15 -05:00
share rc.conf.5: a stray whitespace removed 2023-03-11 21:08:04 +00:00
stand length for the 64-bit entry is 32-bits, not 16-bits. 2023-03-02 17:03:57 -08:00
sys vm: avoid lock upgrade if possible in vm_fault_next 2023-03-11 21:52:01 +00:00
targets retire sconfig(8) ce(4)/cp(4) configuration tool 2022-12-13 15:25:13 -05:00
tests netlink: add snl(3) default parsers for routes and links. 2023-03-09 14:46:27 +00:00
tools Add WITH_LOADER_VERIEXEC_VECTX description 2023-03-09 21:39:41 +00:00
usr.bin tftp: Add tests. 2023-03-10 13:25:16 +00:00
usr.sbin pkg(7): now that we do use libmd, use it completly 2023-03-09 21:31:30 +01:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml Cirrus-CI: use llvm15 toolchain packages 2023-02-13 09:29:36 -05:00
.clang-format clang-format: Add bitset loop macros 2021-09-21 12:08:01 -04:00
.git-blame-ignore-revs Add git-blame ignore file 2023-01-23 15:27:25 -05:00
.gitattributes Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitignore .gitignore: Ignore LSP generated .cache 2023-03-07 10:04:18 -05:00
CONTRIBUTING.md CONTRIBUTING.md: correct developer certificate of origin link markup 2023-02-27 21:36:29 -05:00
COPYRIGHT Happy New Year 2023! 2023-01-01 13:44:43 +08:00
LOCKS LOCKS: update current locks 2018-06-09 03:08:04 +00:00
MAINTAINERS MAINTAINERS+GitHub: Reflect ipfilter was moved from contrib to netpfil 2023-02-28 10:33:03 -08:00
Makefile universe: Switch GCC toolchains to GCC 12. 2023-01-27 13:35:13 -08:00
Makefile.inc1 make showconfig: set MACHINE and MACHINE_ARCH 2023-03-06 16:03:22 -05:00
Makefile.libcompat libcompat: avoid installing include files twice 2022-11-16 19:15:20 -05:00
Makefile.sys.inc AUTO_OBJ: For all top-level targets enforce using an OBJDIR. 2017-12-05 21:29:47 +00:00
ObsoleteFiles.inc ng_atmllc: remove 2023-03-09 18:04:21 +00:00
README.md Vendor import of OpenSSH 9.2p1 2023-02-05 13:04:12 -05:00
RELNOTES Note upgrade to sendmail 8.17.1 2023-02-01 02:23:02 +00:00
UPDATING UPDATING 2023-02-24 23:20:52 -07:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.