svn commit: r240681 - projects/amd64_xen_pv/sys/amd64/include
Cherry G. Mathew
cherry at FreeBSD.org
Tue Sep 18 22:08:52 UTC 2012
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 */ ; \
More information about the svn-src-projects
mailing list