133965Sjdp/* Core file stuff.  At least some, perhaps all, of the following
233965Sjdp   defines work on many more systems than just SCO.  */
333965Sjdp
433965Sjdp#define NBPG NBPC
533965Sjdp#define UPAGES USIZE
633965Sjdp#define HOST_DATA_START_ADDR u.u_exdata.ux_datorg
733965Sjdp#define HOST_STACK_START_ADDR u.u_sub
833965Sjdp#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(abfd) \
933965Sjdp  ((core_upage(abfd)->u_sysabort != 0) \
1033965Sjdp   ? core_upage(abfd)->u_sysabort \
1133965Sjdp   : -1)
1233965Sjdp
1333965Sjdp/* According to the manpage, a version 2 SCO corefile can contain
1433965Sjdp   various additional sections (it is cleverly arranged so the u area,
1533965Sjdp   data, and stack are first where we can find them).  So without
1633965Sjdp   writing lots of code to parse all their headers and stuff, we can't
1733965Sjdp   know whether a corefile is bigger than it should be.  */
1833965Sjdp
1933965Sjdp#define TRAD_CORE_ALLOW_ANY_EXTRA_SIZE 1
20