From owner-svn-src-all@freebsd.org Thu Oct 11 00:26:16 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BC71B10C0F1B; Thu, 11 Oct 2018 00:26:16 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7314278393; Thu, 11 Oct 2018 00:26:16 +0000 (UTC) (envelope-from emaste@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6E021568; Thu, 11 Oct 2018 00:26:16 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9B0QGJK082140; Thu, 11 Oct 2018 00:26:16 GMT (envelope-from emaste@FreeBSD.org) Received: (from emaste@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9B0QF48082136; Thu, 11 Oct 2018 00:26:15 GMT (envelope-from emaste@FreeBSD.org) Message-Id: <201810110026.w9B0QF48082136@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: emaste set sender to emaste@FreeBSD.org using -f From: Ed Maste Date: Thu, 11 Oct 2018 00:26:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r339300 - in stable/11/lib/csu: arm common X-SVN-Group: stable-11 X-SVN-Commit-Author: emaste X-SVN-Commit-Paths: in stable/11/lib/csu: arm common X-SVN-Commit-Revision: 339300 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.27 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: Thu, 11 Oct 2018 00:26:17 -0000 Author: emaste Date: Thu Oct 11 00:26:15 2018 New Revision: 339300 URL: https://svnweb.freebsd.org/changeset/base/339300 Log: MFC r339181: crt: switch to standard note type definitions from elf_common.h This makes it easier to grep the source tree for these notes, and ensures that they will remain in sync. Sponsored by: The FreeBSD Foundation Modified: stable/11/lib/csu/arm/crt1.c stable/11/lib/csu/common/crtbrand.c stable/11/lib/csu/common/ignore_init.c stable/11/lib/csu/common/notes.h Directory Properties: stable/11/ (props changed) Modified: stable/11/lib/csu/arm/crt1.c ============================================================================== --- stable/11/lib/csu/arm/crt1.c Wed Oct 10 22:59:15 2018 (r339299) +++ stable/11/lib/csu/arm/crt1.c Thu Oct 11 00:26:15 2018 (r339300) @@ -42,6 +42,8 @@ #include __FBSDID("$FreeBSD$"); +#include +#include #include #include "libc_private.h" @@ -118,7 +120,7 @@ static const struct { } archtag __attribute__ ((section (NOTE_SECTION), aligned(4))) __used = { .namesz = sizeof(NOTE_FREEBSD_VENDOR), .descsz = sizeof(MACHINE_ARCH), - .type = ARCH_NOTETYPE, + .type = NT_FREEBSD_ARCH_TAG, .name = NOTE_FREEBSD_VENDOR, .desc = MACHINE_ARCH }; Modified: stable/11/lib/csu/common/crtbrand.c ============================================================================== --- stable/11/lib/csu/common/crtbrand.c Wed Oct 10 22:59:15 2018 (r339299) +++ stable/11/lib/csu/common/crtbrand.c Thu Oct 11 00:26:15 2018 (r339300) @@ -27,6 +27,7 @@ __FBSDID("$FreeBSD$"); #include +#include #include "notes.h" /* @@ -60,7 +61,7 @@ static const struct { } abitag __attribute__ ((section (NOTE_SECTION), aligned(4))) __used = { .namesz = sizeof(NOTE_FREEBSD_VENDOR), .descsz = sizeof(int32_t), - .type = ABI_NOTETYPE, + .type = NT_FREEBSD_ABI_TAG, .name = NOTE_FREEBSD_VENDOR, .desc = __FreeBSD_version }; Modified: stable/11/lib/csu/common/ignore_init.c ============================================================================== --- stable/11/lib/csu/common/ignore_init.c Wed Oct 10 22:59:15 2018 (r339299) +++ stable/11/lib/csu/common/ignore_init.c Thu Oct 11 00:26:15 2018 (r339300) @@ -26,6 +26,8 @@ #include __FBSDID("$FreeBSD$"); +#include +#include #include "notes.h" extern int main(int, char **, char **); @@ -112,7 +114,7 @@ static const struct { aligned(4))) __used = { .namesz = sizeof(NOTE_FREEBSD_VENDOR), .descsz = sizeof(uint32_t), - .type = CRT_NOINIT_NOTETYPE, + .type = NT_FREEBSD_NOINIT_TAG, .name = NOTE_FREEBSD_VENDOR, .desc = 0 }; Modified: stable/11/lib/csu/common/notes.h ============================================================================== --- stable/11/lib/csu/common/notes.h Wed Oct 10 22:59:15 2018 (r339299) +++ stable/11/lib/csu/common/notes.h Thu Oct 11 00:26:15 2018 (r339300) @@ -32,8 +32,4 @@ #define NOTE_SECTION ".note.tag" -#define ABI_NOTETYPE 1 -#define CRT_NOINIT_NOTETYPE 2 -#define ARCH_NOTETYPE 3 - #endif