-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuildInfoSetup.lst
273 lines (272 loc) · 10.5 KB
/
buildInfoSetup.lst
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
1 .file "buildInfoSetup.c"
9 .Ltext0:
10 .section .rodata.str1.4,"aMS",%progbits,1
11 .align 2
12 .LC0:
13 0000 4A756E20 .ascii "Jun 26 2018\000"
13 32362032
13 30313800
14 .text
15 .align 2
16 .global generateBuildInfo
18 generateBuildInfo:
19 .LFB2:
20 .file 1 "buildInfoSetup.c"
1:buildInfoSetup.c **** #include "LPC214x.h"
2:buildInfoSetup.c **** #include "main.h"
3:buildInfoSetup.c **** #include "buildInfoSetup.h"
4:buildInfoSetup.c ****
5:buildInfoSetup.c **** struct BUILD_INFO buildInfo;
6:buildInfoSetup.c ****
7:buildInfoSetup.c **** void generateConfigurationByDefines(void);
8:buildInfoSetup.c **** /*
9:buildInfoSetup.c **** * MODIFY THIS FUNCTION TO INCLUDE ALL IMPORTANT DEFINES OF A PROJECT
10:buildInfoSetup.c **** */
11:buildInfoSetup.c ****
12:buildInfoSetup.c **** void generateBuildInfo()
13:buildInfoSetup.c **** {
21 tion supports interworking.
22 @ args = 0, pretend = 0, frame = 48
23 @ frame_needed = 0, uses_anonymous_args = 0
24 stmfd sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
25 0000 F04F2DE9 .LCFI0:
26 sub sp, sp, #48
27 0004 30D04DE2 .LCFI1:
28 .loc 1 14 0
14:buildInfoSetup.c **** char months[12][3]={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dez"};
29 sp, #1
30 0008 01408DE2 ldr r1, .L25
31 000c 9C119FE5 mov r2, #36
32 0010 2420A0E3 mov r0, r4
33 0014 0400A0E1 .loc 1 15 0
15:buildInfoSetup.c **** char dateStr[11]=__DATE__;
34 r6, sp, #37
35 0018 25608DE2 .loc 1 14 0
36 bl memcpy
37 001c FEFFFFEB .loc 1 15 0
38 mov r0, r6
39 0020 0600A0E1 ldr r1, .L25+4
40 0024 88119FE5 mov r2, #11
41 0028 0B20A0E3 bl memcpy
42 002c FEFFFFEB ldr r5, .L25+8
43 0030 80519FE5 mov r0, #0
44 0034 0000A0E3 .LVL0:
45 ldrb r7, [sp, #37] @ zero_extendqisi2
46 0038 2570DDE5 ldrb lr, [sp, #38] @ zero_extendqisi2
47 003c 26E0DDE5 ldrb ip, [sp, #39] @ zero_extendqisi2
48 0040 27C0DDE5 mov sl, r0
49 0044 00A0A0E1 mov r9, r0
50 0048 0090A0E1 mov fp, r0
51 004c 00B0A0E1 mov r8, r0
52 0050 0080A0E1 b .L2
53 0054 050000EA .LVL1:
54 .L4:
55 .LBB2:
56 .loc 1 28 0
16:buildInfoSetup.c **** int m,d,y;
17:buildInfoSetup.c **** int i,z;
18:buildInfoSetup.c ****
19:buildInfoSetup.c ****
20:buildInfoSetup.c **** m=1;
21:buildInfoSetup.c ****
22:buildInfoSetup.c **** for (z=0;z<11;z++)
23:buildInfoSetup.c **** {
24:buildInfoSetup.c **** int cnt=0;
25:buildInfoSetup.c **** for (i=0;i<3;i++)
26:buildInfoSetup.c **** if (months[z][i]==dateStr[i])
27:buildInfoSetup.c **** cnt++;
28:buildInfoSetup.c **** if (cnt==3)
57 c 1 22 0
58 0058 030051E3 add r4, r4, #3
59 .LBB3:
60 .loc 1 28 0
61 005c 034084E2 beq .L23
62 .L5:
63 .LBE3:
64 0060 1000000A .loc 1 22 0
65 add r0, r0, #1
66 cmp r0, #11
67 beq .L24
68 0064 010080E2 .LVL2:
69 0068 0B0050E3 .L2:
70 006c 0F00000A .loc 1 13 0
71 ldrb r3, [r4, #0] @ zero_extendqisi2
72 .LBB4:
73 .loc 1 26 0
74 0070 0030D4E5 ldrb r2, [r4, #1] @ zero_extendqisi2
75 .LBE4:
76 .loc 1 13 0
77 0074 0120D4E5 cmp r3, r7
78 movne r1, #0
79 moveq r1, #1
80 0078 070053E1 .LBB5:
81 007c 0010A013 .loc 1 26 0
82 0080 0110A003 ldrb r3, [r4, #2] @ zero_extendqisi2
83 cmp r2, lr
84 .loc 1 27 0
85 0084 0230D4E5 addeq r1, r1, #1
86 0088 0E0052E1 .loc 1 26 0
87 cmp r3, ip
88 008c 01108102 bne .L4
89 .LVL3:
90 0090 0C0053E1 .loc 1 27 0
91 0094 EFFFFF1A add r1, r1, #1
92 .loc 1 28 0
93 cmp r1, #3
94 0098 011081E2 .LBE5:
95 .loc 1 22 0
96 009c 030051E3 add r4, r4, #3
97 .LBB6:
98 .loc 1 28 0
99 00a0 034084E2 bne .L5
100 .L23:
101 .loc 1 30 0
102 00a4 EEFFFF1A add r4, r0, #1
103 .LVL4:
29:buildInfoSetup.c **** {
30:buildInfoSetup.c **** m=z+1;
104 , #1
105 00a8 014080E2 .LVL6:
106 .L7:
107 00ac 000000EA mov r2, #0
108 .LVL7:
109 mov r1, #48
110 .LVL8:
111 .L9:
112 00b0 0140A0E3 .loc 1 35 0
113 ldrb r3, [r2, r6] @ zero_extendqisi2
114 cmp r3, #47
115 00b4 0020A0E3 .loc 1 36 0
116 strlsb r1, [r2, r6]
117 00b8 3010A0E3 .loc 1 34 0
118 add r2, r2, #1
119 cmp r2, #11
31:buildInfoSetup.c **** break;
32:buildInfoSetup.c **** }
33:buildInfoSetup.c **** }
34:buildInfoSetup.c **** for (z=0;z<11;z++)
35:buildInfoSetup.c **** if (dateStr[z]<48)
120 44 0
121 00bc 0630D2E7 ldrb r3, [sp, #45] @ zero_extendqisi2
122 00c0 2F0053E3 ldrb r1, [sp, #44] @ zero_extendqisi2
36:buildInfoSetup.c **** dateStr[z]=48;
123 d r3, r3, r3, asl #2
124 00c4 0610C297 ldrb ip, [sp, #41] @ zero_extendqisi2
125 rsb r2, r1, r1, asl #5
126 00c8 012082E2 .LVL9:
127 00cc 0B0052E3 add r3, r3, r3, asl #2
128 00d0 F9FFFF1A ldrb r0, [sp, #42] @ zero_extendqisi2
37:buildInfoSetup.c ****
38:buildInfoSetup.c ****
39:buildInfoSetup.c ****
40:buildInfoSetup.c **** d=(dateStr[4]-48)*10+(dateStr[5]-48);
41:buildInfoSetup.c **** y=(dateStr[7]-48)*1000+(dateStr[8]-48)*100+(dateStr[9]-48)*10+(dateStr[10]-48);
42:buildInfoSetup.c ****
43:buildInfoSetup.c ****
44:buildInfoSetup.c **** buildInfo.build_date=y+m*10000+d*1000000;
129 :
130 00d4 2D30DDE5 add r1, r1, r2, asl #2
131 00d8 2C10DDE5 add ip, ip, ip, asl #2
132 00dc 033183E0 ldrb lr, [sp, #47] @ zero_extendqisi2
133 00e0 29C0DDE5 mov r3, r3, asl #2
134 00e4 812261E0 ldrb r2, [sp, #46] @ zero_extendqisi2
135 add r3, r3, r1, asl #3
136 00e8 033183E0 add r0, r0, ip, asl #1
137 00ec 2A00DDE5 add r3, r3, lr
138 sub r0, r0, #528
139 00f0 021181E0 add r2, r2, r2, asl #2
140 00f4 0CC18CE0 add r3, r3, r2, asl #1
141 00f8 2FE0DDE5 rsb r1, r0, r0, asl #5
142 00fc 0331A0E1 rsb r1, r1, r1, asl #6
143 0100 2E20DDE5 sub r3, r3, #53248
144 0104 813183E0 rsb r2, r4, r4, asl #5
145 0108 8C0080E0 add r0, r0, r1, asl #3
146 010c 0E3083E0 add r2, r4, r2, asl #2
147 0110 210E40E2 sub r3, r3, #80
148 0114 022182E0 add r3, r3, r0, asl #6
149 0118 823083E0 add r2, r2, r2, asl #2
150 011c 801260E0 add r3, r3, r2, asl #4
151 0120 011361E0 .loc 1 48 0
152 0124 0D3A43E2 mov r1, #0
153 0128 842264E0 .loc 1 44 0
154 012c 810180E0 mov lr, r3, lsr #8
155 0130 022184E0 mov ip, r3, lsr #16
156 0134 503043E2 mov r0, r3, lsr #24
157 0138 003383E0 mov r2, #3
158 013c 022182E0 strb r3, [r5, #4]
159 0140 023283E0 strb r2, [r5, #0]
45:buildInfoSetup.c **** buildInfo.configuration=__BUILD_CONFIG;
46:buildInfoSetup.c **** buildInfo.build_number=0;
47:buildInfoSetup.c **** buildInfo.svn_modified=0;
48:buildInfoSetup.c **** buildInfo.svn_revision=0;
160 r5, #16]
161 0144 0010A0E3 strb fp, [r5, #18]
162 strb r9, [r5, #11]
163 0148 23E4A0E1 strb sl, [r5, #10]
164 014c 23C8A0E1 strb r1, [r5, #9]
165 0150 230CA0E1 strb r1, [r5, #8]
166 0154 0320A0E3 strb r1, [r5, #15]
167 0158 0430C5E5 strb r1, [r5, #14]
168 015c 0020C5E5 strb r1, [r5, #13]
169 0160 1110C5E5 strb r1, [r5, #12]
170 0164 1080C5E5 strb r0, [r5, #7]
171 0168 12B0C5E5 strb ip, [r5, #6]
172 016c 0B90C5E5 strb lr, [r5, #5]
173 0170 0AA0C5E5 strb r1, [r5, #3]
174 0174 0910C5E5 strb r1, [r5, #2]
175 0178 0810C5E5 strb r1, [r5, #1]
176 017c 0F10C5E5 .loc 1 52 0
177 0180 0E10C5E5 add sp, sp, #48
178 0184 0D10C5E5 ldmfd sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
179 0188 0C10C5E5 bx lr
180 018c 0700C5E5 .L26:
181 0190 06C0C5E5 .align 2
182 0194 05E0C5E5 .L25:
183 0198 0310C5E5 .word C.0.1386
184 019c 0210C5E5 .word .LC0
185 01a0 0110C5E5 .word buildInfo
49:buildInfoSetup.c **** buildInfo.version_major=__VERSION_MAJOR;
50:buildInfoSetup.c **** buildInfo.version_minor=__VERSION_MINOR;
51:buildInfoSetup.c ****
52:buildInfoSetup.c **** }
186 dInfo, .-generateBuildInfo
187 01a4 30D08DE2 .section .rodata
190 C.0.1386:
191 .ascii "Jan"
192 .ascii "Feb"
193 01b0 00000000 .ascii "Mar"
194 01b4 00000000 .ascii "Apr"
195 01b8 00000000 .ascii "May"
196 .ascii "Jun"
197 .ascii "Jul"
198 .ascii "Aug"
199 .ascii "Sep"
200 .ascii "Oct"
201 .ascii "Nov"
202 0000 4A616E .ascii "Dez"
203 0003 466562 .comm GPS_timeout,4,4
204 0006 4D6172 .comm SYSTEM_initialized,1,1
205 0009 417072 .comm buildInfo,83,1
206 000c 4D6179 .section .debug_frame,"",%progbits
207 000f 4A756E .Lframe0:
208 0012 4A756C .4byte .LECIE0-.LSCIE0
209 0015 417567 .LSCIE0:
210 0018 536570 .4byte 0xffffffff
211 001b 4F6374 .byte 0x1
212 001e 4E6F76 .ascii "\000"
213 0021 44657A .uleb128 0x1
214 .sleb128 -4
215 .byte 0xe
216 .byte 0xc
269 .byte 0x7d
DEFINED SYMBOLS
*ABS*:00000000 buildInfoSetup.c
C:\Users\lfrha\AppData\Local\Temp/ccUptaaa.s:18 .text:00000000 generateBuildInfo
C:\Users\lfrha\AppData\Local\Temp/ccUptaaa.s:25 .text:00000000 $a
C:\Users\lfrha\AppData\Local\Temp/ccUptaaa.s:193 .text:000001b0 $d
C:\Users\lfrha\AppData\Local\Temp/ccUptaaa.s:201 .rodata:00000000 C.0.1386
*COM*:00000053 buildInfo
*COM*:00000004 GPS_timeout
*COM*:00000001 SYSTEM_initialized
UNDEFINED SYMBOLS
memcpy