summaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-09-30 00:44:49 +0000
committerAlan Modra <amodra@gmail.com>2000-09-30 00:44:49 +0000
commitf572a39d1559be095b66dc346f00d205492b02bb (patch)
tree7d88e77dc3c496a29eeb8c70635f2932b3d55da3 /bfd/elf.c
parent24dd9f7582c1f717bd82df8c76bba82211fa164a (diff)
downloadbinutils-gdb-f572a39d1559be095b66dc346f00d205492b02bb.tar.gz
Support for Unixware 7.1.x pxstatus_t and lwpxstatus_t.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index e14135b737a..5dac0a35a85 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -5553,7 +5553,11 @@ elfcore_grok_pstatus (abfd, note)
bfd *abfd;
Elf_Internal_Note *note;
{
- if (note->descsz == sizeof (pstatus_t))
+ if (note->descsz == sizeof (pstatus_t)
+#if defined (HAVE_PXSTATUS_T)
+ || note->descsz == sizeof (pxstatus_t)
+#endif
+ )
{
pstatus_t pstat;
@@ -5591,7 +5595,11 @@ elfcore_grok_lwpstatus (abfd, note)
char *name;
asection *sect;
- if (note->descsz != sizeof (lwpstat))
+ if (note->descsz != sizeof (lwpstat)
+#if defined (HAVE_LWPXSTATUS_T)
+ && note->descsz != sizeof (lwpxstatus_t)
+#endif
+ )
return true;
memcpy (&lwpstat, note->descdata, sizeof (lwpstat));