@@ -1246,15 +1246,15 @@ int crash_prepare_elf64_headers(struct crash_mem *mem, int kernel_map,
1246
1246
unsigned long long notes_addr ;
1247
1247
unsigned long mstart , mend ;
1248
1248
1249
- /* extra phdr for vmcoreinfo elf note */
1249
+ /* extra phdr for vmcoreinfo ELF note */
1250
1250
nr_phdr = nr_cpus + 1 ;
1251
1251
nr_phdr += mem -> nr_ranges ;
1252
1252
1253
1253
/*
1254
1254
* kexec-tools creates an extra PT_LOAD phdr for kernel text mapping
1255
1255
* area (for example, ffffffff80000000 - ffffffffa0000000 on x86_64).
1256
1256
* I think this is required by tools like gdb. So same physical
1257
- * memory will be mapped in two elf headers. One will contain kernel
1257
+ * memory will be mapped in two ELF headers. One will contain kernel
1258
1258
* text virtual addresses and other will have __va(physical) addresses.
1259
1259
*/
1260
1260
@@ -1323,10 +1323,10 @@ int crash_prepare_elf64_headers(struct crash_mem *mem, int kernel_map,
1323
1323
phdr -> p_filesz = phdr -> p_memsz = mend - mstart + 1 ;
1324
1324
phdr -> p_align = 0 ;
1325
1325
ehdr -> e_phnum ++ ;
1326
- phdr ++ ;
1327
- pr_debug ("Crash PT_LOAD elf header. phdr=%p vaddr=0x%llx, paddr=0x%llx, sz=0x%llx e_phnum=%d p_offset=0x%llx\n" ,
1326
+ pr_debug ("Crash PT_LOAD ELF header. phdr=%p vaddr=0x%llx, paddr=0x%llx, sz=0x%llx e_phnum=%d p_offset=0x%llx\n" ,
1328
1327
phdr , phdr -> p_vaddr , phdr -> p_paddr , phdr -> p_filesz ,
1329
1328
ehdr -> e_phnum , phdr -> p_offset );
1329
+ phdr ++ ;
1330
1330
}
1331
1331
1332
1332
* addr = buf ;
0 commit comments