@@ -149,7 +149,7 @@ static Elf64_Word *__init auxv_to_elf64_notes(Elf64_Word *buf,
149
149
/* end of vector */
150
150
bufp [idx ++ ] = cpu_to_be64 (AT_NULL );
151
151
152
- buf = append_elf64_note (buf , CRASH_CORE_NOTE_NAME , NT_AUXV ,
152
+ buf = append_elf64_note (buf , NN_AUXV , NT_AUXV ,
153
153
oc_conf -> auxv_buf , AUXV_DESC_SZ );
154
154
return buf ;
155
155
}
@@ -252,7 +252,7 @@ static Elf64_Word * __init opalcore_append_cpu_notes(Elf64_Word *buf)
252
252
* crashing CPU's prstatus.
253
253
*/
254
254
first_cpu_note = buf ;
255
- buf = append_elf64_note (buf , CRASH_CORE_NOTE_NAME , NT_PRSTATUS ,
255
+ buf = append_elf64_note (buf , NN_PRSTATUS , NT_PRSTATUS ,
256
256
& prstatus , sizeof (prstatus ));
257
257
258
258
for (i = 0 ; i < oc_conf -> num_cpus ; i ++ , bufp += size_per_thread ) {
@@ -279,15 +279,15 @@ static Elf64_Word * __init opalcore_append_cpu_notes(Elf64_Word *buf)
279
279
fill_prstatus (& prstatus , thread_pir , & regs );
280
280
281
281
if (thread_pir != oc_conf -> crashing_cpu ) {
282
- buf = append_elf64_note (buf , CRASH_CORE_NOTE_NAME ,
282
+ buf = append_elf64_note (buf , NN_PRSTATUS ,
283
283
NT_PRSTATUS , & prstatus ,
284
284
sizeof (prstatus ));
285
285
} else {
286
286
/*
287
287
* Add crashing CPU as the first NT_PRSTATUS note for
288
288
* GDB to process the core file appropriately.
289
289
*/
290
- append_elf64_note (first_cpu_note , CRASH_CORE_NOTE_NAME ,
290
+ append_elf64_note (first_cpu_note , NN_PRSTATUS ,
291
291
NT_PRSTATUS , & prstatus ,
292
292
sizeof (prstatus ));
293
293
}
0 commit comments