Date: Tue, 18 Sep 2012 22:08:51 +0000 (UTC) From: "Cherry G. Mathew" <cherry@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r240681 - projects/amd64_xen_pv/sys/amd64/include Message-ID: <201209182208.q8IM8pEU071000@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 */ ; \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209182208.q8IM8pEU071000>