freebsd with flexible iflib nic queues
Go to file
Marcel Moolenaar 0f9d8c9b27 Implement elf_reloc(). The RT specification says that we can expect
both Elf_Rel and Elf_Rela types of relocation, so handle them both
even though we only have Rel_Rela ATM. We don't handle 32-bit and
big-endian variants yet. Support for that is not trivial enough to
implement it without any evidence that we ever need it in the near
future.

For the FPTR relocations, we currently use the fptr_storage used by
_reloc() is locore.s. This is in no way a real solution, but for now
provides the service we need to get the basics going.

A static recursive function lookup_fdesc() is used to find the address
of a function in a way that keeps track of the load module so that
we can get the correct GP value if we need to construct an OPD (ie
there's no OPD yet for the function.

For simplicity, we create an OPD for the IPLT relocations as well and
simply fill the user provided function descriptor from the OPD. Since
the the official descriptors are unique, this has no bad side effects.
Note that we ignore the addend for FPTR relocations, but use the
addend for IPLT relocations as an offset to the function address.

This commit allows us to load and relocate modules and modules appear
to work correctly, although we probably need to make sure that we set
GP correctly in all cases when we have inter-module calls. This
especially applies to assembly coded functions that have cross module
calls.
2002-04-21 21:27:57 +00:00
bin Use `The .Nm utility' 2002-04-21 12:53:08 +00:00
contrib Resolve conflicts from import of post-8.12.3 bug fixes. 2002-04-20 20:34:16 +00:00
crypto Move LOGIN_CAP calls before all file descriptors are closed hard, since some 2002-04-21 13:31:56 +00:00
etc Non-sendmail users use the FreeBSD sendmail startup functionality to start 2002-04-21 20:32:28 +00:00
games Fix a segfault if 'wear' is used without an argument or with 2002-04-15 17:27:34 +00:00
gnu Remove my MAINTAINER= from here, as it is in src/MAINTAINER 2002-04-21 08:03:25 +00:00
include Rework the kernel environment subsystem. We now convert the static 2002-04-17 13:06:36 +00:00
kerberos5 Fix build when MAKE_KERBEROS4 is not requested. This was broken with 2002-02-21 15:54:20 +00:00
kerberosIV
lib Implement several of the c99 updates to scanf(3): 2002-04-20 17:00:56 +00:00
libexec When opieverify() is fail, fallback to try unix password. 2002-04-16 10:54:30 +00:00
release MFbed: translation updates 2002-04-21 18:45:07 +00:00
sbin Add mount_udf and mount_smbfs to crossrefs. 2002-04-21 18:23:58 +00:00
secure Switch over to using pam_login_access(8) module in sshd(8). 2002-03-26 12:52:28 +00:00
share Non-sendmail users use the FreeBSD sendmail startup functionality to start 2002-04-21 20:32:28 +00:00
sys Implement elf_reloc(). The RT specification says that we can expect 2002-04-21 21:27:57 +00:00
tools For the P function, the newline must be considered a part of the pattern 2002-04-21 01:27:05 +00:00
usr.bin Use fseeko and uintptr_t to make sure that we get a sensible offset 2002-04-21 19:04:26 +00:00
usr.sbin Turn blank lines into .Pp . This does not significantly change the 2002-04-21 18:41:29 +00:00
COPYRIGHT
MAINTAINERS I decided I don't want to be part of this. 2002-04-20 08:24:11 +00:00
Makefile Despite the fact that it is documented in the handbook, the release notes, 2002-04-20 19:04:59 +00:00
Makefile.inc1 Despite the fact that it is documented in the handbook, the release notes, 2002-04-20 19:04:59 +00:00
Makefile.upgrade
README
UPDATING Mention the UCONSOLE kernel option removal. 2002-04-19 11:37:34 +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, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  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, documentation
for which can be found at:
   http://www.FreeBSD.org/handbook/kernelconfig.html
And in the config(8) man page.
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 sample kernel configuration files reside in the sys/<arch>/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/user commands.

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.

kerberosIV	KerberosIV (eBones) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

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/handbook/synching.html