Commit efa089e
x86/boot: Construct PE/COFF .text section from assembler
Now that the size of the setup block is visible to the assembler, it is
possible to populate the PE/COFF header fields from the asm code
directly, instead of poking the values into the binary using the build
tool. This will make it easier to reorganize the section layout without
having to tweak the build tool in lockstep.
This change has no impact on the resulting bzImage binary.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230915171623.655440-15-ardb@google.com1 parent aeb9206 commit efa089e
2 files changed
Lines changed: 7 additions & 62 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
| 78 | + | |
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
84 | | - | |
85 | | - | |
| 83 | + | |
86 | 84 | | |
87 | 85 | | |
88 | 86 | | |
| |||
105 | 103 | | |
106 | 104 | | |
107 | 105 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 106 | + | |
112 | 107 | | |
113 | 108 | | |
114 | 109 | | |
| |||
199 | 194 | | |
200 | 195 | | |
201 | 196 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | 197 | | |
206 | 198 | | |
207 | 199 | | |
208 | 200 | | |
209 | | - | |
210 | | - | |
211 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
212 | 204 | | |
213 | | - | |
| 205 | + | |
214 | 206 | | |
215 | 207 | | |
216 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | 53 | | |
55 | 54 | | |
56 | | - | |
57 | 55 | | |
58 | 56 | | |
59 | 57 | | |
| |||
216 | 214 | | |
217 | 215 | | |
218 | 216 | | |
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 | 217 | | |
246 | 218 | | |
247 | 219 | | |
248 | 220 | | |
249 | 221 | | |
250 | 222 | | |
251 | 223 | | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | 224 | | |
263 | 225 | | |
264 | 226 | | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | 227 | | |
269 | 228 | | |
270 | 229 | | |
| |||
307 | 266 | | |
308 | 267 | | |
309 | 268 | | |
310 | | - | |
311 | 269 | | |
312 | 270 | | |
313 | | - | |
314 | 271 | | |
315 | 272 | | |
316 | 273 | | |
| |||
328 | 285 | | |
329 | 286 | | |
330 | 287 | | |
331 | | - | |
332 | | - | |
333 | 288 | | |
334 | 289 | | |
335 | 290 | | |
| |||
376 | 331 | | |
377 | 332 | | |
378 | 333 | | |
379 | | - | |
380 | | - | |
381 | 334 | | |
382 | 335 | | |
383 | 336 | | |
| |||
0 commit comments