aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@netbsd.org>2002-01-09 18:59:11 +0000
committerJason Thorpe <thorpej@netbsd.org>2002-01-09 18:59:11 +0000
commitb4db1224b76fe25c9770904953491be0e51cb9fb (patch)
tree549855e99e7e9245bff9809080cf9b675838fa4c /bfd/elf.c
parentc564377feab16bc2fda4424625f23813186c3e8c (diff)
downloadgdb-b4db1224b76fe25c9770904953491be0e51cb9fb.zip
gdb-b4db1224b76fe25c9770904953491be0e51cb9fb.tar.gz
gdb-b4db1224b76fe25c9770904953491be0e51cb9fb.tar.bz2
include/elf:
* common.h: Update copyright years. (NT_NETBSDCORE_PROCINFO): Define. (NT_NETBSDCORE_FIRSTMACH): Define. bfd: * elf.c: Update copyright years. (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO and NT_NETBSDCORE_FIRSTMACH. Improve a comment. bintuils: * readelf.c (get_netbsd_elfcore_note_type): Use NT_NETBSDCORE_PROCINFO and NT_NETBSDCORE_FIRSTMACH.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index ed2396e..1dd7d7d 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -6432,7 +6432,7 @@ elfcore_grok_netbsd_note (abfd, note)
if (elfcore_netbsd_get_lwpid (note, &lwp))
elf_tdata (abfd)->core_lwpid = lwp;
- if (note->type == 1)
+ if (note->type == NT_NETBSDCORE_PROCINFO)
{
/* NetBSD-specific core "procinfo". Note that we expect to
find this note before any of the others, which is fine,
@@ -6442,11 +6442,12 @@ elfcore_grok_netbsd_note (abfd, note)
return elfcore_grok_netbsd_procinfo (abfd, note);
}
- /* There are not currently any other machine-independent notes defined
- for NetBSD ELF core files. If the note type is less than the start
- of the machine-dependent note types, we don't understand it. */
+ /* As of Jan 2002 there are no other machine-independent notes
+ defined for NetBSD core files. If the note type is less
+ than the start of the machine-dependent note types, we don't
+ understand it. */
- if (note->type < 32)
+ if (note->type < NT_NETBSDCORE_FIRSTMACH)
return true;
@@ -6459,10 +6460,10 @@ elfcore_grok_netbsd_note (abfd, note)
case bfd_arch_sparc:
switch (note->type)
{
- case 32+0:
+ case NT_NETBSDCORE_FIRSTMACH+0:
return elfcore_make_note_pseudosection (abfd, ".reg", note);
- case 32+2:
+ case NT_NETBSDCORE_FIRSTMACH+2:
return elfcore_make_note_pseudosection (abfd, ".reg2", note);
default:
@@ -6475,10 +6476,10 @@ elfcore_grok_netbsd_note (abfd, note)
default:
switch (note->type)
{
- case 32+1:
+ case NT_NETBSDCORE_FIRSTMACH+1:
return elfcore_make_note_pseudosection (abfd, ".reg", note);
- case 32+3:
+ case NT_NETBSDCORE_FIRSTMACH+3:
return elfcore_make_note_pseudosection (abfd, ".reg2", note);
default: