forked from rhboot/shim
-
Notifications
You must be signed in to change notification settings - Fork 2
/
cert.S
65 lines (63 loc) · 1.42 KB
/
cert.S
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.globl cert_table
.type cert_table, %object
.size cert_table, 4
.section .vendor_cert, "a", %progbits
cert_table:
#if defined(VENDOR_CERT_FILE)
.long vendor_cert_priv_end - vendor_cert_priv
#else
.long 0
#endif
#if defined(VENDOR_DBX_FILE)
.long vendor_dbx_priv_end - vendor_dbx_priv
#else
.long 0
#endif
.long vendor_cert_priv - cert_table
.long vendor_dbx_priv - cert_table
#if defined(VENDOR_CERT_FILE)
.data
.align 1
.type vendor_cert_priv, %object
.size vendor_cert_priv, vendor_cert_priv_end-vendor_cert_priv
.section .vendor_cert, "a", %progbits
vendor_cert_priv:
.incbin VENDOR_CERT_FILE
vendor_cert_priv_end:
#else
.bss
.type vendor_cert_priv, %object
.size vendor_cert_priv, 1
.section .vendor_cert, "a", %progbits
vendor_cert_priv:
.zero 1
.data
.align 4
.type vendor_cert_size_priv, %object
.size vendor_cert_size_priv, 4
.section .vendor_cert, "a", %progbits
vendor_cert_priv_end:
#endif
#if defined(VENDOR_DBX_FILE)
.data
.align 1
.type vendor_dbx_priv, %object
.size vendor_dbx_priv, vendor_dbx_priv_end-vendor_dbx_priv
.section .vendor_cert, "a", %progbits
vendor_dbx_priv:
.incbin VENDOR_DBX_FILE
vendor_dbx_priv_end:
#else
.bss
.type vendor_dbx_priv, %object
.size vendor_dbx_priv, 1
.section .vendor_cert, "a", %progbits
vendor_dbx_priv:
.zero 1
.data
.align 4
.type vendor_dbx_size_priv, %object
.size vendor_dbx_size_priv, 4
.section .vendor_cert, "a", %progbits
vendor_dbx_priv_end:
#endif