xref: /openbsd-src/gnu/usr.bin/binutils/bfd/hosts/i386sco.h (revision 2159047f7a97bd07d66507696a8b038f6aef0509)
1*2159047fSniklas /* Core file stuff.  At least some, perhaps all, of the following
2*2159047fSniklas    defines work on many more systems than just SCO.  */
3*2159047fSniklas 
4*2159047fSniklas #define NBPG NBPC
5*2159047fSniklas #define UPAGES USIZE
6*2159047fSniklas #define HOST_DATA_START_ADDR u.u_exdata.ux_datorg
7*2159047fSniklas #define HOST_STACK_START_ADDR u.u_sub
8*2159047fSniklas #define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(abfd) \
9*2159047fSniklas   ((core_upage(abfd)->u_sysabort != 0) \
10*2159047fSniklas    ? core_upage(abfd)->u_sysabort \
11*2159047fSniklas    : -1)
12*2159047fSniklas 
13*2159047fSniklas /* According to the manpage, a version 2 SCO corefile can contain
14*2159047fSniklas    various additional sections (it is cleverly arranged so the u area,
15*2159047fSniklas    data, and stack are first where we can find them).  So without
16*2159047fSniklas    writing lots of code to parse all their headers and stuff, we can't
17*2159047fSniklas    know whether a corefile is bigger than it should be.  */
18*2159047fSniklas 
19*2159047fSniklas #define TRAD_CORE_ALLOW_ANY_EXTRA_SIZE 1
20