* fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
the ELF header.
This commit is contained in:
parent
686e72d729
commit
9a12a2a0ed
|
@ -1,3 +1,8 @@
|
||||||
|
2003-10-30 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
|
||||||
|
the ELF header.
|
||||||
|
|
||||||
2003-10-29 Mark Kettenis <kettenis@gnu.org>
|
2003-10-29 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
|
* config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
|
||||||
|
|
|
@ -127,6 +127,11 @@ fbsd_make_corefile_notes (bfd *obfd, int *note_size)
|
||||||
gregset_t gregs;
|
gregset_t gregs;
|
||||||
fpregset_t fpregs;
|
fpregset_t fpregs;
|
||||||
char *note_data = NULL;
|
char *note_data = NULL;
|
||||||
|
Elf_Internal_Ehdr *i_ehdrp;
|
||||||
|
|
||||||
|
/* Put a "FreeBSD" label in the ELF header. */
|
||||||
|
i_ehdrp = elf_elfheader (obfd);
|
||||||
|
i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_FREEBSD;
|
||||||
|
|
||||||
fill_gregset (&gregs, -1);
|
fill_gregset (&gregs, -1);
|
||||||
note_data = elfcore_write_prstatus (obfd, note_data, note_size,
|
note_data = elfcore_write_prstatus (obfd, note_data, note_size,
|
||||||
|
|
Loading…
Reference in New Issue