diff options
author | Steve Chamberlain <steve@cygnus> | 1991-07-19 15:28:37 +0000 |
---|---|---|
committer | Steve Chamberlain <steve@cygnus> | 1991-07-19 15:28:37 +0000 |
commit | fcc654cbfd8c384a4cf773b98e893932818c791a (patch) | |
tree | 1635d9e3b5424c1f44053dac84b8b30843eb4cd3 /include | |
parent | 78f3d2c924319ebe5ef7509dc75841f8a8c0ff09 (diff) | |
download | gdb-fcc654cbfd8c384a4cf773b98e893932818c791a.zip gdb-fcc654cbfd8c384a4cf773b98e893932818c791a.tar.gz gdb-fcc654cbfd8c384a4cf773b98e893932818c791a.tar.bz2 |
Changes in reloc numbers, lint, and removal of const
Diffstat (limited to 'include')
-rwxr-xr-x | include/aout64.h | 9 | ||||
-rw-r--r-- | include/bfd.h | 24 | ||||
-rwxr-xr-x | include/sparc-opcode.h | 2 |
3 files changed, 20 insertions, 15 deletions
diff --git a/include/aout64.h b/include/aout64.h index 8a47fc3..ff00c56 100755 --- a/include/aout64.h +++ b/include/aout64.h @@ -321,6 +321,13 @@ enum reloc_type RELOC_GLOB_DAT, RELOC_JMP_SLOT, RELOC_RELATIVE, + + RELOC_11, + RELOC_WDISP2_14, + RELOC_WDISP19, + RELOC_HHI22, /* data[0:21] = (addend + sv) >> 42 */ + RELOC_HLO10, /* data[0:9] = (addend + sv) >> 32 */ + /* 29K relocation types */ RELOC_JUMPTARG, RELOC_CONST, @@ -331,8 +338,6 @@ enum reloc_type RELOC_64, /* data[0:63] = addend + sv */ RELOC_DISP64, /* data[0:63] = addend - pc + sv */ RELOC_WDISP21, /* data[0:20] = (addend + sv - pc)>>2 */ - RELOC_HHI22, /* data[0:21] = (addend + sv) >> 42 */ - RELOC_HLO10, /* data[0:9] = (addend + sv) >> 32 */ RELOC_DISP21, /* data[0:20] = addend - pc + sv */ RELOC_DISP14, /* data[0:13] = addend - pc + sv */ /* Q . diff --git a/include/bfd.h b/include/bfd.h index 977abb9..79c23b9 100644 --- a/include/bfd.h +++ b/include/bfd.h @@ -1369,21 +1369,21 @@ typedef struct bfd_target entry points, since they don't take bfd as first arg. Certain other handlers could do the same. */ - SDEF (bfd_64_type, bfd_getx64, (bfd_byte *)); - SDEF (void, bfd_putx64, (bfd_64_type, bfd_byte *)); - SDEF (unsigned int, bfd_getx32, (bfd_byte *)); - SDEF (void, bfd_putx32, (unsigned long, bfd_byte *)); - SDEF (unsigned int, bfd_getx16, (bfd_byte *)); - SDEF (void, bfd_putx16, (int, bfd_byte *)); + SDEF (bfd_vma, bfd_getx64, (bfd_byte *)); + SDEF (void, bfd_putx64, (bfd_vma, bfd_byte *)); + SDEF (bfd_vma, bfd_getx32, (bfd_byte *)); + SDEF (void, bfd_putx32, (bfd_vma, bfd_byte *)); + SDEF (bfd_vma, bfd_getx16, (bfd_byte *)); + SDEF (void, bfd_putx16, (bfd_vma, bfd_byte *)); /* Byte swapping for the headers */ - SDEF (bfd_64_type, bfd_h_getx64, (bfd_byte *)); - SDEF (void, bfd_h_putx64, (bfd_64_type, bfd_byte *)); - SDEF (unsigned int, bfd_h_getx32, (bfd_byte *)); - SDEF (void, bfd_h_putx32, (unsigned long, bfd_byte *)); - SDEF (unsigned int, bfd_h_getx16, (bfd_byte *)); - SDEF (void, bfd_h_putx16, (int, bfd_byte *)); + SDEF (bfd_vma, bfd_h_getx64, (bfd_byte *)); + SDEF (void, bfd_h_putx64, (bfd_vma, bfd_byte *)); + SDEF (bfd_vma, bfd_h_getx32, (bfd_byte *)); + SDEF (void, bfd_h_putx32, (bfd_vma, bfd_byte *)); + SDEF (bfd_vma, bfd_h_getx16, (bfd_byte *)); + SDEF (void, bfd_h_putx16, (bfd_vma, bfd_byte *)); /* Format dependent routines, these turn into vectors of entry points within the target vector structure; one for each format to check. diff --git a/include/sparc-opcode.h b/include/sparc-opcode.h index 425d8d9..9b2b3a3 100755 --- a/include/sparc-opcode.h +++ b/include/sparc-opcode.h @@ -206,7 +206,7 @@ The following chars are unused: (note: ,[] are used as punctuation) #define FCC(x) (((x)&0x3)<<11) /* v9 */ #define FBFCC(x) (((x)&0x3)<<19) /* v9 */ -static const struct sparc_opcode sparc_opcodes[] = { +static struct sparc_opcode sparc_opcodes[] = { { "ld", F3(3, 0x00, 0), F3(~3, ~0x00, ~0), "[1+2],d", 0, v6 }, { "ld", F3(3, 0x00, 0), F3(~3, ~0x00, ~0)|RS2_G0, "[1],d", 0, v6 }, /* ld [rs1+%g0],d */ |