From owner-svn-src-projects@FreeBSD.ORG Tue Sep 18 22:08:52 2012 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 28F06106566B; Tue, 18 Sep 2012 22:08:52 +0000 (UTC) (envelope-from cherry@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 151578FC21; Tue, 18 Sep 2012 22:08:52 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q8IM8pAf071002; Tue, 18 Sep 2012 22:08:51 GMT (envelope-from cherry@svn.freebsd.org) Received: (from cherry@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q8IM8pEU071000; Tue, 18 Sep 2012 22:08:51 GMT (envelope-from cherry@svn.freebsd.org) Message-Id: <201209182208.q8IM8pEU071000@svn.freebsd.org> From: "Cherry G. Mathew" Date: Tue, 18 Sep 2012 22:08:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r240681 - projects/amd64_xen_pv/sys/amd64/include X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2012 22:08:52 -0000 Author: cherry Date: Tue Sep 18 22:08:51 2012 New Revision: 240681 URL: http://svn.freebsd.org/changeset/base/240681 Log: Add relevant "FLAGS", @TYPE directives to the .note assembler directive. This fixes notes section breakage with clang compiled binaries. Approved by: gibbs (implicit) Modified: projects/amd64_xen_pv/sys/amd64/include/asmacros.h Modified: projects/amd64_xen_pv/sys/amd64/include/asmacros.h ============================================================================== --- projects/amd64_xen_pv/sys/amd64/include/asmacros.h Tue Sep 18 22:04:59 2012 (r240680) +++ projects/amd64_xen_pv/sys/amd64/include/asmacros.h Tue Sep 18 22:08:51 2012 (r240681) @@ -203,7 +203,7 @@ #ifdef __STDC__ #define ELFNOTE(name, type, desctype, descdata...) \ -.pushsection .note.name ; \ +.pushsection .note.name, "", @note ; \ .align 4 ; \ .long 2f - 1f /* namesz */ ; \ .long 4f - 3f /* descsz */ ; \ @@ -215,7 +215,7 @@ .popsection #else /* !__STDC__, i.e. -traditional */ #define ELFNOTE(name, type, desctype, descdata) \ -.pushsection .note.name ; \ +.pushsection .note.name, "", @note ; \ .align 4 ; \ .long 2f - 1f /* namesz */ ; \ .long 4f - 3f /* descsz */ ; \