FreeBSD src
Go to file
Konstantin Belousov cff8c6f2d1 Add support for weak symbols to the kernel linkers. It means that
linkers no longer raise an error when undefined weak symbols are
found, but relocate as if the symbol value was 0.  Note that we do not
repeat the mistake of userspace dynamic linker of making the symbol
lookup prefer non-weak symbol definition over the weak one, if both
are available.  In fact, kernel linker uses the first definition
found, and ignores duplicates.

Signature of the elf_lookup() and elf_obj_lookup() functions changed
to split result/error code and the symbol address returned.
Otherwise, it is impossible to return zero address as the symbol
value, to MD relocation code.  This explains the mechanical changes in
elf_machdep.c sources.

The powerpc64 R_PPC_JMP_SLOT handler did not checked error from the
lookup() call, the patch leaves the code as is (untested).

Reported by:	glebius
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2015-09-20 01:27:59 +00:00
bin Update META_MODE dependencies. 2015-09-17 05:06:34 +00:00
cddl Use FILES for installing the dtrace scripts. 2015-09-18 21:18:44 +00:00
contrib When chrooted, we need to strip the chroot directory from the front of 2015-09-17 16:19:36 +00:00
crypto Fix OpenSSH multiple vulnerabilities by backporting three changes 2015-08-25 20:48:37 +00:00
etc The "automount" rc script should depend on "automountd", not the other 2015-09-18 06:54:52 +00:00
games Correctly case FreeBSD in my entry in the tips file 2015-09-08 22:51:10 +00:00
gnu Replace afterinstall: hack with FILES mechanism. 2015-09-19 03:53:37 +00:00
include META_MODE: Avoid command changing in 2nd build. 2015-09-18 21:36:29 +00:00
kerberos5 Move setting of LDFLAGS to the modules which require it actually, as 2015-08-27 17:16:18 +00:00
lib Add PF_LOCAL support in getaddrinfo(3) and getnameinfo(3): 2015-09-20 01:09:23 +00:00
libexec META_MODE: No need to fix the link in this case. 2015-09-18 23:12:38 +00:00
release Whitespace alignment 2015-09-11 22:42:26 +00:00
rescue
sbin Fix /sbin/route to never look up (invalid) interface names through DNS 2015-09-17 16:56:49 +00:00
secure Replace afterinstall: hack from r111083 with 'make delete-old' functionality. 2015-09-19 03:46:10 +00:00
share Fix LIBRARIES_ONLY 2015-09-18 23:25:43 +00:00
sys Add support for weak symbols to the kernel linkers. It means that 2015-09-20 01:27:59 +00:00
targets Connect sesutil(1) and numactl(1) for META_MODE. 2015-09-19 17:47:36 +00:00
tests Use _exit() instead of exit() in child processes created during tests. 2015-09-09 22:54:07 +00:00
tools Document NO_DIRDEPS for META_MODE and give link to full details. 2015-09-18 22:22:32 +00:00
usr.bin Connect sesutil(1) and numactl(1) for META_MODE. 2015-09-19 17:47:36 +00:00
usr.sbin - Remove unused union p_un. 2015-09-19 23:48:06 +00:00
.arcconfig
.arclint
COPYRIGHT
LOCKS
MAINTAINERS
Makefile Rework r287900 to keep arm64/aarch64 stable in the TARGETS list. 2015-09-17 04:54:49 +00:00
Makefile.inc1 Let makeman run 'make showconfig' without hitting the aarch64 error. 2015-09-17 04:48:15 +00:00
ObsoleteFiles.inc Replace afterinstall: hack from r54681 with 'make delete-old' functionality. 2015-09-19 03:51:19 +00:00
README Import OpenSSL 1.0.1p. 2015-07-09 16:41:34 +00:00
UPDATING Add reminder to run etcupdate or mergemaster to get updated 2015-08-29 07:59:31 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

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)
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

The `buildkernel` and `installkernel` targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process.  See build(7), config(8),
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
for more information.

Note: If you want to build and install the kernel with the
`buildkernel` and `installkernel` targets, you might need to build
world before.  More information is available in the handbook.

The kernel configuration files reside in the sys/<arch>/conf
sub-directory.  GENERIC is the default configuration used in release builds.
NOTES contains entries and documentation for all possible
devices, not just those commonly used.


Source Roadmap:
---------------

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.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* 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.

sys		Kernel sources.

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:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html