diff options
author | Stu Grossman <grossman@cygnus> | 1992-12-15 01:12:34 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1992-12-15 01:12:34 +0000 |
commit | 76c7e44ddef829629c57953c30ecde0ac5846ec4 (patch) | |
tree | 24e170ca60f73b910a4c054299355216787de17b | |
parent | f21de9333f678e38f35d0a08badceee0120d362b (diff) | |
download | gdb-76c7e44ddef829629c57953c30ecde0ac5846ec4.zip gdb-76c7e44ddef829629c57953c30ecde0ac5846ec4.tar.gz gdb-76c7e44ddef829629c57953c30ecde0ac5846ec4.tar.bz2 |
* hppa.c: #include "sysdep.h", not <sysdep.h>.
* libhppa.h: Make millicode_start and millicode_end be unsigned
int to be same type as CORE_ADDR in GDB. Why are these here?
-rw-r--r-- | bfd/ChangeLog | 25 | ||||
-rw-r--r-- | bfd/hppa.c | 2 | ||||
-rw-r--r-- | bfd/libhppa.h | 127 |
3 files changed, 153 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9bc27d9..51669a3 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,28 @@ +Mon Dec 14 17:08:08 1992 Stu Grossman (grossman at cygnus.com) + + * hppa.c: #include "sysdep.h", not <sysdep.h>. + * libhppa.h: Make millicode_start and millicode_end be unsigned + int to be same type as CORE_ADDR in GDB. Why are these here? + +Sat Dec 12 15:54:36 1992 Ian Lance Taylor (ian@cygnus.com) + + * coff-i386.c (CALC_ADDEND): if reloc is PC relative, add the + vaddr of the section to the addend. + * targets.c: if MINIMIZE is 1, and SCO_CORE is defined, add + SCO_CORE to SELECT_VECS. + (target_vector): add sco_core_vec. + * sco-core.c (sco_core_vec): add leading underscore initializer. + * configure.in (i[34]86-*-sco*): use target i386-sco. + * config/i386-sco.mt: new file; define SCO_CORE. + +Thu Dec 10 02:13:15 1992 John Gilmore (gnu@cygnus.com) + + * aout-adobe.c (aout_adobe_object_p): Fix !strcmp thinko. + +Fri Dec 4 14:02:49 1992 Ken Raeburn (raeburn@cambridge.cygnus.com) + + * coffcode.h (bfd_coff_std_swap_table): Now static and const. + Thu Dec 3 16:54:58 1992 Ken Raeburn (raeburn@cambridge.cygnus.com) * hosts/i386linux.h: Include unistd.h. @@ -22,8 +22,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifdef hp9000s800 -#include <sysdep.h> #include "bfd.h" +#include "sysdep.h" #include "libbfd.h" #include "libhppa.h" diff --git a/bfd/libhppa.h b/bfd/libhppa.h new file mode 100644 index 0000000..8fedc2b --- /dev/null +++ b/bfd/libhppa.h @@ -0,0 +1,127 @@ +/* HP PA-RISC SOM object file format: definitions internal to BFD. + Copyright (C) 1990-1991 Free Software Foundation, Inc. + + Contributed by the Center for Software Science at the + University of Utah (pa-gdb-bugs@cs.utah.edu). + +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., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#define BYTES_IN_WORD 4 + +struct header; +struct som_exec_auxhdr; +struct subspace_dictionary; + + + +#define FILE_HDR_SIZE sizeof(struct header) +#define AUX_HDR_SIZE sizeof(struct som_exec_auxhdr) + +unsigned int millicode_start, millicode_end; + +struct nlist { + union { + char *n_name; + struct nlist *n_next; + long n_strx; + } n_un; + unsigned char n_type; + char n_other; + short n_desc; + unsigned long n_value; +}; + +typedef struct hppa_symbol +{ + asymbol symbol; + short desc; + char other; + unsigned char type; +} hppa_symbol_type; + +struct hppadata +{ + struct header *file_hdr; + struct som_exec_auxhdr *aux_hdr; + hppa_symbol_type *symbols; + + /* For ease, we do this */ + asection *textsec; + asection *datasec; + asection *bsssec; + + /* We remember these offsets so that after check_file_format, we have + no dependencies on the particular format of the exec_hdr. */ + file_ptr dbx_sym_filepos; + file_ptr dbx_str_filepos; + + file_ptr hp_sym_filepos; + file_ptr hp_str_filepos; + + int dbx_sym_count; + int hp_sym_count; + + unsigned dbx_stringtab_size; + unsigned hp_stringtab_size; + + /* Size of a symbol table entry in external form */ + unsigned dbx_symbol_entry_size; + unsigned hp_symbol_entry_size; +}; + +struct hppa_data_struct { + struct hppadata a; +}; + + +#define padata(bfd) ((bfd)->tdata.hppa_data->a) +#define obj_file_hdr(bfd) (padata(bfd).file_hdr) +#define obj_aux_hdr(bfd) (padata(bfd).aux_hdr) +#define obj_pa_symbols(bfd) (padata(bfd).symbols) +#define obj_textsec(bfd) (padata(bfd).textsec) +#define obj_datasec(bfd) (padata(bfd).datasec) +#define obj_bsssec(bfd) (padata(bfd).bsssec) +#define obj_dbx_sym_filepos(bfd) (padata(bfd).dbx_sym_filepos) +#define obj_dbx_str_filepos(bfd) (padata(bfd).dbx_str_filepos) +#define obj_hp_sym_filepos(bfd) (padata(bfd).hp_sym_filepos) +#define obj_hp_str_filepos(bfd) (padata(bfd).hp_str_filepos) +#define obj_dbx_sym_count(bfd) (padata(bfd).dbx_sym_count) +#define obj_hp_sym_count(bfd) (padata(bfd).hp_sym_count) +#define obj_dbx_stringtab_size(bfd) (padata(bfd).dbx_stringtab_size) +#define obj_hp_stringtab_size(bfd) (padata(bfd).hp_stringtab_size) +#define obj_dbx_symbol_entry_size(bfd) (padata(bfd).dbx_symbol_entry_size) +#define obj_hp_symbol_entry_size(bfd) (padata(bfd).hp_symbol_entry_size) + +/* We take the address of the first element of an asymbol to ensure that the + macro is only ever applied to an asymbol */ +#define hppa_symbol(asymbol) ((hppa_symbol_type *)(&(asymbol)->the_bfd)) + + +/* These are stored in the bfd's tdata */ +struct hppa_core_struct +{ + struct hpuxuser *upage; + asection *data_section; + asection *stack_section; + asection *reg_section; +}; + + +#define core_upage(bfd) ((bfd)->tdata.hppa_core_data->upage) +#define core_datasec(bfd) ((bfd)->tdata.hppa_core_data->data_section) +#define core_stacksec(bfd) ((bfd)->tdata.hppa_core_data->stack_section) +#define core_regsec(bfd) ((bfd)->tdata.hppa_core_data->reg_section) |