mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 01:01:06 +00:00
Fix the value of NT_FREEBSD_TAG to be the same as ABI_NOTRTYPE in lib/csu.
Add NT_FREEBSD_NOINIT_TAG for the value of CRT_NOINIT_NOTETYPE. Check for both of these when detecting a FreeBSD binary in gdb.
This commit is contained in:
parent
ba5f77bf16
commit
b00bf67dd2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=249603
|
@ -437,7 +437,8 @@
|
|||
|
||||
/* Values for FreeBSD .note.tag notes. Note name is "FreeBSD". */
|
||||
|
||||
#define NT_FREEBSD_TAG 2
|
||||
#define NT_FREEBSD_TAG 1
|
||||
#define NT_FREEBSD_NOINIT_TAG 2
|
||||
|
||||
/* These three macros disassemble and assemble a symbol table st_info field,
|
||||
which contains the symbol binding and symbol type. The STB_ and STT_
|
||||
|
|
|
@ -474,6 +474,12 @@ generic_elf_osabi_sniff_abi_tag_sections: unknown OS number %d",
|
|||
*osabi = GDB_OSABI_FREEBSD_ELF;
|
||||
return;
|
||||
}
|
||||
if (check_note (abfd, sect, note, "FreeBSD", 4, NT_FREEBSD_NOINIT_TAG))
|
||||
{
|
||||
/* There is no need to check the version yet. */
|
||||
*osabi = GDB_OSABI_FREEBSD_ELF;
|
||||
return;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue