Find a file
Ed Maste 8d91740f96 strip/objcopy: handle empty file as unknown
Previously strip reported a somewhat cryptic error for empty files:

    strip: elf_begin() failed: Invalid argument

Add a special case to treat empty files as with an unknown file format.
This is consistent with llvm-strip.  GNU strip produces no output which
does not seem like useful behaviour (but it does exit with status 1).

Reported by:	andrew
Reviewed by:	markj
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D32648

(cherry picked from commit 179219ea04)
2021-11-08 08:54:23 -05:00
.cirrus-ci
.github/workflows
bin date: Capitalize seconds string in synopses 2021-11-07 18:55:22 +01:00
cddl libctf: Improve check for duplicate SOU definitions in ctf_add_type() 2021-10-18 09:09:02 -04:00
contrib strip/objcopy: handle empty file as unknown 2021-11-08 08:54:23 -05:00
crypto OpenSSH: cherry-pick "need initgroups() before setresgid()" 2021-10-12 11:37:55 -04:00
etc
gnu
include
kerberos5
lib cosl(): fix polynomial approximation coefficients for ld128 version 2021-11-08 03:49:45 +02:00
libexec rtld: Do not install libmap.conf when installing the COMPAT32 version 2021-11-06 16:03:06 +01:00
release EC2: Default to UEFI booting 2021-09-25 09:20:58 -07:00
rescue
sbin Update old iSCSI initiator man pages for removal from 14 and later 2021-10-26 16:23:41 -04:00
secure
share efirt(9): Correct efi_var_set definition in the manpage 2021-11-05 00:59:54 -04:00
stand powerpc64le: stand fixes 2021-11-05 11:29:40 -03:00
sys vmci: Avoid relying on macro expansion to provide correct syntax 2021-11-07 14:39:38 -05:00
targets
tests bitset: Reimplement BIT_FOREACH_IS(SET|CLR) 2021-11-01 09:20:11 -04:00
tools crypto: Support Chacha20-Poly1305 with a nonce size of 8 bytes. 2021-10-21 14:19:30 -07:00
usr.bin fuser: restore functionality by fixing fsid type 2021-11-08 07:55:30 +02:00
usr.sbin devinfo(8): Remove cross-reference to pnpinfo(8) 2021-11-05 00:54:33 -04:00
.arcconfig
.arclint
.cirrus.yml
.clang-format clang-format: Add bitset loop macros 2021-11-01 09:20:11 -04:00
.gitattributes
.gitignore
COPYRIGHT
LOCKS
MAINTAINERS
Makefile Remove 'make update'. 2021-10-19 16:53:24 -07:00
Makefile.inc1 Makefile.inc1: Remove mentions of removed target "update" 2021-10-31 20:29:51 +01:00
Makefile.libcompat
Makefile.sys.inc
ObsoleteFiles.inc ObsoleteFiles.inc: stop removing pthread_mutexattr_get/setpshared.3 2021-10-12 10:00:10 +03:00
README
README.md
RELNOTES
UPDATING UPDATING: Add entry for commit a599f9f762 2021-10-03 15:54:33 -07:00

FreeBSD Source:

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

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

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.

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.

stand		Boot loader sources.

sys		Kernel sources.

sys/<arch>/conf Kernel configuration files. GENERIC is the configuration
		used in release builds. NOTES contains documentation of
		all possible entries.

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:

https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/current-stable.html