From owner-svn-src-all@freebsd.org Tue Dec 5 21:38:07 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D3208E83447; Tue, 5 Dec 2017 21:38:07 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6EA427285D; Tue, 5 Dec 2017 21:38:06 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB5Lc5Ef024129; Tue, 5 Dec 2017 21:38:05 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB5Lc51T024125; Tue, 5 Dec 2017 21:38:05 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201712052138.vB5Lc51T024125@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Tue, 5 Dec 2017 21:38:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326590 - in head/stand: common efi/loader X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: in head/stand: common efi/loader X-SVN-Commit-Revision: 326590 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2017 21:38:08 -0000 Author: imp Date: Tue Dec 5 21:38:04 2017 New Revision: 326590 URL: https://svnweb.freebsd.org/changeset/base/326590 Log: Prefer stdint.h to inttypes.h since the added prototypes form the latter aren't used. Prefer sys/link_elf.h to link.h so we're only dependent on the kernel tree. The default installation of link.h just includes this file, and any benefit from that is outweighed by the hassle it causes. This reduces the footprint of files needed from the system includes (or sysroot in buildworld). Sponsored by: Netflix Modified: head/stand/common/load_elf.c head/stand/common/load_elf_obj.c head/stand/common/reloc_elf.c head/stand/efi/loader/main.c Modified: head/stand/common/load_elf.c ============================================================================== --- head/stand/common/load_elf.c Tue Dec 5 21:37:59 2017 (r326589) +++ head/stand/common/load_elf.c Tue Dec 5 21:38:04 2017 (r326590) @@ -37,7 +37,7 @@ __FBSDID("$FreeBSD$"); #include #include #define FREEBSD_ELF -#include +#include #include "bootstrap.h" Modified: head/stand/common/load_elf_obj.c ============================================================================== --- head/stand/common/load_elf_obj.c Tue Dec 5 21:37:59 2017 (r326589) +++ head/stand/common/load_elf_obj.c Tue Dec 5 21:38:04 2017 (r326590) @@ -33,12 +33,12 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include +#include #include #include #include #define FREEBSD_ELF -#include +#include #include "bootstrap.h" Modified: head/stand/common/reloc_elf.c ============================================================================== --- head/stand/common/reloc_elf.c Tue Dec 5 21:37:59 2017 (r326589) +++ head/stand/common/reloc_elf.c Tue Dec 5 21:38:04 2017 (r326590) @@ -36,7 +36,7 @@ __FBSDID("$FreeBSD$"); #include #define FREEBSD_ELF -#include +#include #include "bootstrap.h" Modified: head/stand/efi/loader/main.c ============================================================================== --- head/stand/efi/loader/main.c Tue Dec 5 21:37:59 2017 (r326589) +++ head/stand/efi/loader/main.c Tue Dec 5 21:38:04 2017 (r326590) @@ -32,7 +32,7 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include +#include #include #include #include