OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /or1k/trunk/insight/bfd/hosts
    from Rev 578 to Rev 1765
    Reverse comparison

Rev 578 → Rev 1765

/symmetry.h
0,0 → 1,20
/* Symmetry running either dynix 3.1 (bsd) or ptx (sysv). */
 
#define NBPG 4096
#define UPAGES 1
 
#ifdef _SEQUENT_
/* ptx */
#define HOST_TEXT_START_ADDR 0
#define HOST_STACK_END_ADDR 0x3fffe000
#define TRAD_CORE_USER_OFFSET ((UPAGES * NBPG) - sizeof (struct user))
#else
/* dynix */
#define HOST_TEXT_START_ADDR 0x1000
#define HOST_DATA_START_ADDR (NBPG * u.u_tsize)
#define HOST_STACK_END_ADDR 0x3ffff000
#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \
((core_bfd)->tdata.trad_core_data->u.u_arg[0])
#endif
 
#define TRAD_CORE_DSIZE_INCLUDES_TSIZE
symmetry.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: decstation.h =================================================================== --- decstation.h (nonexistent) +++ decstation.h (revision 1765) @@ -0,0 +1,17 @@ +/* Hopefully this should include either machine/param.h (Ultrix) or + machine/machparam.h (Mach), whichever is its name on this system. */ +#include + +#include + +#define HOST_PAGE_SIZE NBPG +/* #define HOST_SEGMENT_SIZE NBPG -- we use HOST_DATA_START_ADDR */ +#define HOST_MACHINE_ARCH bfd_arch_mips +/* #define HOST_MACHINE_MACHINE */ + +#define HOST_TEXT_START_ADDR USRTEXT +#define HOST_DATA_START_ADDR USRDATA +#define HOST_STACK_END_ADDR USRSTACK + +#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \ + ((core_bfd)->tdata.trad_core_data->u.u_arg[0])
decstation.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: i386sco.h =================================================================== --- i386sco.h (nonexistent) +++ i386sco.h (revision 1765) @@ -0,0 +1,19 @@ +/* Core file stuff. At least some, perhaps all, of the following + defines work on many more systems than just SCO. */ + +#define NBPG NBPC +#define UPAGES USIZE +#define HOST_DATA_START_ADDR u.u_exdata.ux_datorg +#define HOST_STACK_START_ADDR u.u_sub +#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(abfd) \ + ((core_upage(abfd)->u_sysabort != 0) \ + ? core_upage(abfd)->u_sysabort \ + : -1) + +/* According to the manpage, a version 2 SCO corefile can contain + various additional sections (it is cleverly arranged so the u area, + data, and stack are first where we can find them). So without + writing lots of code to parse all their headers and stuff, we can't + know whether a corefile is bigger than it should be. */ + +#define TRAD_CORE_ALLOW_ANY_EXTRA_SIZE 1
i386sco.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tahoe.h =================================================================== --- tahoe.h (nonexistent) +++ tahoe.h (revision 1765) @@ -0,0 +1,12 @@ +#define NO_CORE_COMMAND + +#undef ALIGN /* They use it, we use it too */ +#include +#undef ALIGN /* They use it, we use it too */ + +#define HOST_PAGE_SIZE NBPG +#define HOST_MACHINE_ARCH bfd_arch_tahoe + +#define HOST_TEXT_START_ADDR 0 +#define HOST_STACK_END_ADDR (KERNBASE - (UPAGES * NBPG)) +#define HOST_BIG_ENDIAN_P
tahoe.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: mipsbsd.h =================================================================== --- mipsbsd.h (nonexistent) +++ mipsbsd.h (revision 1765) @@ -0,0 +1,12 @@ +#include +#include +#undef ALIGN + +#define HOST_PAGE_SIZE NBPG +/* #define HOST_SEGMENT_SIZE NBPG -- we use HOST_DATA_START_ADDR */ +#define HOST_MACHINE_ARCH bfd_arch_mips +/* #define HOST_MACHINE_MACHINE */ + +#define HOST_TEXT_START_ADDR USRTEXT +#define HOST_STACK_END_ADDR USRSTACK +#define NO_CORE_COMMAND
mipsbsd.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: i860mach3.h =================================================================== --- i860mach3.h (nonexistent) +++ i860mach3.h (revision 1765) @@ -0,0 +1,27 @@ +/* This file was hacked from i386mach3.h [dolan@ssd.intel.com] */ + +#include +#include + +/* This is an ugly way to hack around the incorrect + * definition of UPAGES in i386/machparam.h. + * + * The definition should specify the size reserved + * for "struct user" in core files in PAGES, + * but instead it gives it in 512-byte core-clicks + * for i386 and i860. UPAGES is used only in trad-core.c. + */ +#if UPAGES == 16 +#undef UPAGES +#define UPAGES 2 +#endif + +#if UPAGES != 2 +FIXME!! UPAGES is neither 2 nor 16 +#endif + +#define HOST_PAGE_SIZE 1 +#define HOST_SEGMENT_SIZE NBPG +#define HOST_MACHINE_ARCH bfd_arch_i860 +#define HOST_TEXT_START_ADDR USRTEXT +#define HOST_STACK_END_ADDR USRSTACK
i860mach3.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: riscos.h =================================================================== --- riscos.h (nonexistent) +++ riscos.h (revision 1765) @@ -0,0 +1,10 @@ +/* RISC/os 4.52C, and presumably other versions. */ + +#include +#include + +#define NBPG BSD43_NBPG +#define UPAGES BSD43_UPAGES +#define HOST_TEXT_START_ADDR BSD43_USRTEXT +#define HOST_DATA_START_ADDR BSD43_USRDATA +#define HOST_STACK_END_ADDR BSD43_USRSTACK
riscos.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: m88kmach3.h =================================================================== --- m88kmach3.h (nonexistent) +++ m88kmach3.h (revision 1765) @@ -0,0 +1,11 @@ +#include +#include + +#undef UPAGES +#define UPAGES 3 + +#define HOST_PAGE_SIZE NBPG +#define HOST_SEGMENT_SIZE NBPG +#define HOST_MACHINE_ARCH bfd_arch_m88k +#define HOST_TEXT_START_ADDR USRTEXT +#define HOST_STACK_END_ADDR USRSTACK
m88kmach3.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: m68kaux.h =================================================================== --- m68kaux.h (nonexistent) +++ m68kaux.h (revision 1765) @@ -0,0 +1,16 @@ +/* Definitions for an Apple Macintosh running A/UX 3.x. */ + +#include +#include + +/* Definitions used by trad-core.c. */ +#define NBPG NBPP + +#define HOST_DATA_START_ADDR u.u_exdata.ux_datorg +#define HOST_TEXT_START_ADDR u.u_exdata.ux_txtorg +#define HOST_STACK_END_ADDR 0x100000000 + +#define UPAGES USIZE + +#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(abfd) \ + (abfd->tdata.trad_core_data->u.u_arg[0])
m68kaux.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: m68klinux.h =================================================================== --- m68klinux.h (nonexistent) +++ m68klinux.h (revision 1765) @@ -0,0 +1,6 @@ +/* Linux dumps "struct task_struct" at the end of the core-file. This + structure is currently 2512 bytes long, but we allow up to 4096 + bytes to allow for some future growth. */ +#define TRAD_CORE_EXTRA_SIZE_ALLOWED 4096 +#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(abfd) \ + ((abfd)->tdata.trad_core_data->u.signal)
m68klinux.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: i386mach3.h =================================================================== --- i386mach3.h (nonexistent) +++ i386mach3.h (revision 1765) @@ -0,0 +1,25 @@ +#include +#include + +/* This is an ugly way to hack around the incorrect + * definition of UPAGES in i386/machparam.h. + * + * The definition should specify the size reserved + * for "struct user" in core files in PAGES, + * but instead it gives it in 512-byte core-clicks + * for i386 and i860. UPAGES is used only in trad-core.c. + */ +#if UPAGES == 16 +#undef UPAGES +#define UPAGES 2 +#endif + +#if UPAGES != 2 +FIXME!! UPAGES is neither 2 nor 16 +#endif + +#define HOST_PAGE_SIZE 1 +#define HOST_SEGMENT_SIZE NBPG +#define HOST_MACHINE_ARCH bfd_arch_i386 +#define HOST_TEXT_START_ADDR USRTEXT +#define HOST_STACK_END_ADDR USRSTACK
i386mach3.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: alphalinux.h =================================================================== --- alphalinux.h (nonexistent) +++ alphalinux.h (revision 1765) @@ -0,0 +1,6 @@ +/* Linux dumps "struct task_struct" at the end of the core-file. This + structure is currently 1080 bytes long, but we allow up to 4096 + bytes to allow for some future growth. */ +#define TRAD_CORE_EXTRA_SIZE_ALLOWED 4096 +#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(abfd) \ + ((abfd)->tdata.trad_core_data->u.signal)
alphalinux.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: vaxult2.h =================================================================== --- vaxult2.h (nonexistent) +++ vaxult2.h (revision 1765) @@ -0,0 +1,8 @@ +#include +#include +#define HOST_PAGE_SIZE (NBPG*CLSIZE) +#define HOST_MACHINE_ARCH bfd_arch_vax + +#define HOST_TEXT_START_ADDR USRTEXT +#define HOST_STACK_END_ADDR USRSTACK +#undef HOST_BIG_ENDIAN_P
vaxult2.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: delta68.h =================================================================== --- delta68.h (nonexistent) +++ delta68.h (revision 1765) @@ -0,0 +1,18 @@ +/* Definitions for a Motorola Delta 3300 box running System V R3.0. + Contributed by manfred@lts.sel.alcatel.de. */ + +#include + +/* Definitions used by trad-core.c. */ +#define NBPG NBPC +#define HOST_DATA_START_ADDR u.u_exdata.ux_datorg +#define HOST_TEXT_START_ADDR u.u_exdata.ux_txtorg +#if 0 +#define HOST_STACK_END_ADDR 0x40000000 +#else +/* User's stack, copied from sys/param.h */ +#define HOST_STACK_END_ADDR USRSTACK +#endif +#define UPAGES USIZE +#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(abfd) \ + abfd->tdata.trad_core_data->u.u_abort
delta68.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: i386linux.h =================================================================== --- i386linux.h (nonexistent) +++ i386linux.h (revision 1765) @@ -0,0 +1,8 @@ +/* Linux writes the task structure at the end of the core file. Currently it + is 2912 bytes. It is possible that this should be a pickier check, but + we should probably not be too picky (the size of the task structure might + vary, and if it's not the length we expect it to be, it doesn't affect + our ability to process the core file). So allow 0-4096 extra bytes at + the end. */ + +#define TRAD_CORE_EXTRA_SIZE_ALLOWED 4096
i386linux.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: alphavms.h =================================================================== --- alphavms.h (nonexistent) +++ alphavms.h (revision 1765) @@ -0,0 +1,69 @@ +/* alphavms.h -- BFD definitions for an openVMS host + Copyright 1996 Free Software Foundation, Inc. + Written by Klaus Kämpf (kkaempf@progis.de) + of proGIS Softwareentwicklung, Aachen, Germany + +This file is part of BFD, the Binary File Descriptor library. + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "bfd.h" + +#ifndef BFD_HOST_64_BIT +/* Make the basic types 64-bit quantities on the host. + Also provide the support macros BFD needs. */ +# ifdef __GNUC__ +# define BFD_HOST_64_BIT long long +# else +# define BFD_HOST_64_BIT long +# endif +typedef unsigned BFD_HOST_64_BIT uint64_type; +typedef BFD_HOST_64_BIT int64_type; + +# define sprintf_vma(s,x) sprintf (s, "%016lx", x) /* BFD_HOST_64_BIT */ +# define fprintf_vma(f,x) fprintf (f, "%016lx", x) /* BFD_HOST_64_BIT */ + +# define BYTES_IN_PRINTF_INT 4 + +/* These must have type unsigned long because they are used as + arguments in printf functions. */ +# define uint64_typeLOW(x) ((unsigned long) (((x) & 0xffffffff))) /* BFD_HOST_64_BIT */ +# define uint64_typeHIGH(x) ((unsigned long) (((x) >> 32) & 0xffffffff)) /* BFD_HOST_64_BIT */ + +#endif /* BFD_HOST_64_BIT */ + +#include "fopen-vms.h" + +#define NO_FCNTL 1 + +#ifndef O_ACCMODE +#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) +#endif + +extern int getpagesize PARAMS ((void));
alphavms.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: news.h =================================================================== --- news.h (nonexistent) +++ news.h (revision 1765) @@ -0,0 +1,9 @@ +/* Sony News running NewsOS 3.2. */ + +#include + +#define HOST_PAGE_SIZE NBPG +#define HOST_SEGMENT_SIZE NBPG +#define HOST_MACHINE_ARCH bfd_arch_m68k +#define HOST_TEXT_START_ADDR 0 +#define HOST_STACK_END_ADDR (KERNBASE - (UPAGES * NBPG))
news.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: dpx2.h =================================================================== --- dpx2.h (nonexistent) +++ dpx2.h (revision 1765) @@ -0,0 +1,8 @@ +/* Definitions that are needed for core files. Core section sizes for + the DPX2 are in bytes. */ + +#include +#define NBPG 1 +#define UPAGES (USIZE * NBPP) +#define HOST_DATA_START_ADDR (u.u_exdata.ux_datorg) +#define HOST_STACK_END_ADDR (USERSTACK)
dpx2.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: i386bsd.h =================================================================== --- i386bsd.h (nonexistent) +++ i386bsd.h (revision 1765) @@ -0,0 +1,32 @@ +/* Intel 386 running any BSD Unix */ + +#include +#include + +/* Recent versions of FreeBSD don't define NBPG. */ +#ifndef NBPG +#ifdef PAGE_SIZE +#define NBPG PAGE_SIZE +#endif +#endif + +#define HOST_PAGE_SIZE NBPG +#define HOST_MACHINE_ARCH bfd_arch_i386 +#define HOST_TEXT_START_ADDR USRTEXT + +/* Jolitz suggested defining HOST_STACK_END_ADDR to + (u.u_kproc.kp_eproc.e_vm.vm_maxsaddr + MAXSSIZ), which should work on + both BSDI and 386BSD, but that is believed not to work for BSD 4.4. */ + +#ifdef __bsdi__ +/* This seems to be the right thing for BSDI. */ +#define HOST_STACK_END_ADDR USRSTACK +#define HOST_DATA_START_ADDR ((bfd_vma)u.u_kproc.kp_eproc.e_vm.vm_daddr) +#else +/* This seems to be the right thing for 386BSD release 0.1. */ +#define HOST_STACK_END_ADDR (USRSTACK - MAXSSIZ) +#endif + +#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \ + ((core_bfd)->tdata.trad_core_data->u.u_sig) +#define u_comm u_kproc.kp_proc.p_comm
i386bsd.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: news-mips.h =================================================================== --- news-mips.h (nonexistent) +++ news-mips.h (revision 1765) @@ -0,0 +1,12 @@ +/* Sony News running NewsOS 3.2. */ + +#include +#include + +#define HOST_PAGE_SIZE NBPG + +#define HOST_MACHINE_ARCH bfd_arch_mips + +#define HOST_TEXT_START_ADDR USRTEXT +#define HOST_DATA_START_ADDR USRDATA +#define HOST_STACK_END_ADDR USRSTACK
news-mips.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: hp300bsd.h =================================================================== --- hp300bsd.h (nonexistent) +++ hp300bsd.h (revision 1765) @@ -0,0 +1,13 @@ +#include +#ifdef BSD4_4 +#define NO_CORE_COMMAND +#endif + +#define HOST_PAGE_SIZE NBPG +#define HOST_SEGMENT_SIZE NBPG /* Data seg start addr rounds to NBPG */ +#define HOST_MACHINE_ARCH bfd_arch_m68k +/* #define HOST_MACHINE_MACHINE */ + +#define HOST_TEXT_START_ADDR 0 +#define HOST_STACK_END_ADDR 0xfff00000 +#define HOST_BIG_ENDIAN_P
hp300bsd.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: vaxult.h =================================================================== --- vaxult.h (nonexistent) +++ vaxult.h (revision 1765) @@ -0,0 +1,8 @@ +#include +#include +#define HOST_PAGE_SIZE (NBPG*CLSIZE) +#define HOST_MACHINE_ARCH bfd_arch_vax + +#define HOST_TEXT_START_ADDR USRTEXT +#define HOST_STACK_END_ADDR USRSTACK +#undef HOST_BIG_ENDIAN_P
vaxult.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: mipsmach3.h =================================================================== --- mipsmach3.h (nonexistent) +++ mipsmach3.h (revision 1765) @@ -0,0 +1,10 @@ +#include +#include +#include + +#define HOST_PAGE_SIZE NBPG +/* #define HOST_SEGMENT_SIZE NBPG */ +#define HOST_MACHINE_ARCH bfd_arch_mips +#define HOST_TEXT_START_ADDR USRTEXT +#define HOST_DATA_START_ADDR USRDATA +#define HOST_STACK_END_ADDR USRSTACK
mipsmach3.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: pc532mach.h =================================================================== --- pc532mach.h (nonexistent) +++ pc532mach.h (revision 1765) @@ -0,0 +1,24 @@ +#include +#include + +/* This is an ugly way to hack around the incorrect + * definition of UPAGES in ns532/machparam.h. + * + * The definition should specify the size reserved + * for "struct user" in core files in PAGES, + * but instead it gives it in 512-byte core-clicks + * for ns532, i386 and i860. UPAGES is used only in trad-core.c. + */ +#if UPAGES == 16 +#undef UPAGES +#define UPAGES 2 +#endif + +#if UPAGES != 2 +#error UPAGES is neither 2 nor 16 +#endif + +#define HOST_PAGE_SIZE 1 +#define HOST_SEGMENT_SIZE NBPG +#define HOST_TEXT_START_ADDR USRTEXT +#define HOST_STACK_END_ADDR USRSTACK
pc532mach.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: vaxbsd.h =================================================================== --- vaxbsd.h (nonexistent) +++ vaxbsd.h (revision 1765) @@ -0,0 +1,19 @@ +#define NO_CORE_COMMAND /* No command name in core file */ + +#if 0 +#undef ALIGN /* They use it, we use it too */ +/* Does not exist on BSD 4.3, it uses machine/machparam.h. + Whatever it is, it's included by , which trad-core.c, + the only place that uses this (I think), already includes. */ +#include +#endif +#undef ALIGN /* They use it, we use it too */ + +/* Note that HOST_PAGE_SIZE -- the page size as far as executable files + are concerned -- is not the same as NBPG, because of page clustering. */ +#define HOST_PAGE_SIZE 1024 +#define HOST_MACHINE_ARCH bfd_arch_vax + +#define HOST_TEXT_START_ADDR 0 +#define HOST_STACK_END_ADDR (0x80000000 - (UPAGES * NBPG)) +#undef HOST_BIG_ENDIAN_P
vaxbsd.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.