diff options
author | Alan Modra <amodra@gmail.com> | 2021-03-02 12:06:14 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-03-03 17:46:24 +1030 |
commit | dc83f2d20e964f9a7fd9a97ba9d3950b908752a1 (patch) | |
tree | b2655d6a19d07021558a1151bf85ae70194768a6 /include/coff/z8k.h | |
parent | ca87bad0e90e53de2f6509939c45cd7434329a49 (diff) | |
download | gdb-dc83f2d20e964f9a7fd9a97ba9d3950b908752a1.zip gdb-dc83f2d20e964f9a7fd9a97ba9d3950b908752a1.tar.gz gdb-dc83f2d20e964f9a7fd9a97ba9d3950b908752a1.tar.bz2 |
Split relocation defines out of coff/internal.h
include/
* coff/internal.h: Delete obsolete relocation defines. Move used
relocation defines..
* coff/i386.h: ..to here..
* coff/ti.h: ..and here..
* coff/x86_64.h: ..and here..
* coff/z80.h: ..and here..
* coff/z8k.h: ..and here.
bfd/
* reloc.c: Include x86_64.h rather than internal.h.
Diffstat (limited to 'include/coff/z8k.h')
-rw-r--r-- | include/coff/z8k.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/coff/z8k.h b/include/coff/z8k.h index c1da61c..90ac466 100644 --- a/include/coff/z8k.h +++ b/include/coff/z8k.h @@ -47,3 +47,14 @@ struct external_reloc #define RELOC struct external_reloc #define RELSZ 16 +/* Z8k relocations. */ +#define R_IMM16 0x01 /* 16 bit abs */ +#define R_JR 0x02 /* jr 8 bit disp */ +#define R_IMM32 0x11 /* 32 bit abs */ +#define R_IMM8 0x22 /* 8 bit abs */ +#define R_IMM4L 0x23 /* low nibble */ +#define R_REL16 0x04 /* 16 bit PC rel */ +#define R_CALLR 0x05 /* callr 12 bit disp */ +#define R_SEG 0x10 /* set if in segmented mode */ +#define R_IMM4H 0x24 /* high nibble */ +#define R_DISP7 0x25 /* djnz displacement */ |