-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathtest.S
More file actions
21 lines (20 loc) · 618 Bytes
/
test.S
File metadata and controls
21 lines (20 loc) · 618 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// This is modeled after
// https://source.chromium.org/chromium/chromium/src/+/main:third_party/crashpad/crashpad/client/crashpad_info_note.S;drc=8371af273f35eb989520360435fb81a730d6a593
.section .note.postject.resource,"a",%note
.balign 4
POSTJECT_NOTE:
.long name_end - name // namesz
.long desc_end - desc // descsz
.long 0x5f464f49 // type
name:
.asciz "postject"
name_end:
.balign 4
desc:
.long rname_end - rname // rnamesz
rname:
.asciz "foobar" // Customize this to what you want
rname_end:
.incbin "foo.txt" // resource content
desc_end:
.size POSTJECT_NOTE, .-POSTJECT_NOTE