|
@@ -38,17 +38,25 @@
|
|
|
* e.g. ELFNOTE(XYZCo, 42, .asciz, "forty-two")
|
|
|
* ELFNOTE(XYZCo, 12, .long, 0xdeadbeef)
|
|
|
*/
|
|
|
-#define ELFNOTE(name, type, desctype, descdata) \
|
|
|
-.pushsection .note.name, "",@note ; \
|
|
|
- .align 4 ; \
|
|
|
+#define ELFNOTE_START(name, type, flags) \
|
|
|
+.pushsection .note.name, flags,@note ; \
|
|
|
+ .balign 4 ; \
|
|
|
.long 2f - 1f /* namesz */ ; \
|
|
|
- .long 4f - 3f /* descsz */ ; \
|
|
|
+ .long 4484f - 3f /* descsz */ ; \
|
|
|
.long type ; \
|
|
|
1:.asciz #name ; \
|
|
|
-2:.align 4 ; \
|
|
|
-3:desctype descdata ; \
|
|
|
-4:.align 4 ; \
|
|
|
+2:.balign 4 ; \
|
|
|
+3:
|
|
|
+
|
|
|
+#define ELFNOTE_END \
|
|
|
+4484:.balign 4 ; \
|
|
|
.popsection ;
|
|
|
+
|
|
|
+#define ELFNOTE(name, type, desc) \
|
|
|
+ ELFNOTE_START(name, type, "") \
|
|
|
+ desc ; \
|
|
|
+ ELFNOTE_END
|
|
|
+
|
|
|
#else /* !__ASSEMBLER__ */
|
|
|
#include <linux/elf.h>
|
|
|
/*
|