Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161875363
D35611.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D35611.diff
View Options
diff --git a/sys/amd64/include/asmacros.h b/sys/amd64/include/asmacros.h
--- a/sys/amd64/include/asmacros.h
+++ b/sys/amd64/include/asmacros.h
@@ -243,7 +243,7 @@
#ifdef __STDC__
#define ELFNOTE(name, type, desctype, descdata...) \
-.pushsection .note.name ; \
+.pushsection .note.name, "a", @note ; \
.align 4 ; \
.long 2f - 1f /* namesz */ ; \
.long 4f - 3f /* descsz */ ; \
@@ -255,7 +255,7 @@
.popsection
#else /* !__STDC__, i.e. -traditional */
#define ELFNOTE(name, type, desctype, descdata) \
-.pushsection .note.name ; \
+.pushsection .note.name, "a", @note ; \
.align 4 ; \
.long 2f - 1f /* namesz */ ; \
.long 4f - 3f /* descsz */ ; \
diff --git a/sys/arm/include/asmacros.h b/sys/arm/include/asmacros.h
--- a/sys/arm/include/asmacros.h
+++ b/sys/arm/include/asmacros.h
@@ -41,7 +41,7 @@
mrc p15, 0, tmp, c13, c0, 4
#define ELFNOTE(section, type, vendor, desctype, descdata...) \
- .pushsection section ; \
+ .pushsection section, "a", %note ; \
.balign 4 ; \
.long 2f - 1f /* namesz */ ; \
.long 4f - 3f /* descsz */ ; \
diff --git a/sys/i386/include/asmacros.h b/sys/i386/include/asmacros.h
--- a/sys/i386/include/asmacros.h
+++ b/sys/i386/include/asmacros.h
@@ -156,7 +156,7 @@
#ifdef __STDC__
#define ELFNOTE(name, type, desctype, descdata...) \
-.pushsection .note.name ; \
+.pushsection .note.name, "a", @note ; \
.align 4 ; \
.long 2f - 1f /* namesz */ ; \
.long 4f - 3f /* descsz */ ; \
@@ -168,7 +168,7 @@
.popsection
#else /* !__STDC__, i.e. -traditional */
#define ELFNOTE(name, type, desctype, descdata) \
-.pushsection .note.name ; \
+.pushsection .note.name, "a", @note ; \
.align 4 ; \
.long 2f - 1f /* namesz */ ; \
.long 4f - 3f /* descsz */ ; \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 8, 3:34 PM (17 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34849891
Default Alt Text
D35611.diff (2 KB)
Attached To
Mode
D35611: elfnote: place note in a PT_NOTE program header
Attached
Detach File
Event Timeline
Log In to Comment