regenerated
This commit is contained in:
parent
6a3eb9b606
commit
fa5ba2170f
1 changed files with 40 additions and 10 deletions
|
@ -101,12 +101,21 @@ typedef HOST_64_BIT int64_type;
|
||||||
typedef unsigned HOST_64_BIT uint64_type;
|
typedef unsigned HOST_64_BIT uint64_type;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined (uint64_type) && defined (__GNUC__)
|
||||||
|
#define uint64_type unsigned long long
|
||||||
|
#define int64_type long long
|
||||||
|
#define uint64_typeLOW(x) (unsigned long)(((x) & 0xffffffff))
|
||||||
|
#define uint64_typeHIGH(x) (unsigned long)(((x) >> 32) & 0xffffffff)
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef unsigned HOST_64_BIT bfd_vma;
|
typedef unsigned HOST_64_BIT bfd_vma;
|
||||||
typedef HOST_64_BIT bfd_signed_vma;
|
typedef HOST_64_BIT bfd_signed_vma;
|
||||||
typedef unsigned HOST_64_BIT bfd_size_type;
|
typedef unsigned HOST_64_BIT bfd_size_type;
|
||||||
typedef unsigned HOST_64_BIT symvalue;
|
typedef unsigned HOST_64_BIT symvalue;
|
||||||
#define fprintf_vma(s,x) \
|
#define fprintf_vma(s,x) \
|
||||||
fprintf(s,"%08x%08x", uint64_typeHIGH(x), uint64_typeLOW(x))
|
fprintf(s,"%08x%08x", uint64_typeHIGH(x), uint64_typeLOW(x))
|
||||||
|
#define sprintf_vma(s,x) \
|
||||||
|
sprintf(s,"%08x%08x", uint64_typeHIGH(x), uint64_typeLOW(x))
|
||||||
#else /* not BFD64 */
|
#else /* not BFD64 */
|
||||||
|
|
||||||
/* Represent a target address. Also used as a generic unsigned type
|
/* Represent a target address. Also used as a generic unsigned type
|
||||||
|
@ -125,6 +134,7 @@ typedef unsigned long bfd_size_type;
|
||||||
|
|
||||||
/* Print a bfd_vma x on stream s. */
|
/* Print a bfd_vma x on stream s. */
|
||||||
#define fprintf_vma(s,x) fprintf(s, "%08lx", x)
|
#define fprintf_vma(s,x) fprintf(s, "%08lx", x)
|
||||||
|
#define sprintf_vma(s,x) sprintf(s, "%08lx", x)
|
||||||
#endif /* not BFD64 */
|
#endif /* not BFD64 */
|
||||||
#define printf_vma(x) fprintf_vma(stdout,x)
|
#define printf_vma(x) fprintf_vma(stdout,x)
|
||||||
|
|
||||||
|
@ -1037,17 +1047,27 @@ bfd_perform_relocation
|
||||||
typedef enum bfd_reloc_code_real
|
typedef enum bfd_reloc_code_real
|
||||||
|
|
||||||
{
|
{
|
||||||
|
/* 64 bits wide, simple reloc */
|
||||||
|
BFD_RELOC_64,
|
||||||
|
/* 64 bits, PC-relative */
|
||||||
|
BFD_RELOC_64_PCREL,
|
||||||
|
|
||||||
|
/* 32 bits wide, simple reloc */
|
||||||
|
BFD_RELOC_32,
|
||||||
|
/* 32 bits, PC-relative */
|
||||||
|
BFD_RELOC_32_PCREL,
|
||||||
|
|
||||||
/* 16 bits wide, simple reloc */
|
/* 16 bits wide, simple reloc */
|
||||||
BFD_RELOC_16,
|
BFD_RELOC_16,
|
||||||
|
/* 16 bits, PC-relative */
|
||||||
/* 8 bits wide, but used to form an address like 0xffnn */
|
BFD_RELOC_16_PCREL,
|
||||||
BFD_RELOC_8_FFnn,
|
|
||||||
|
|
||||||
/* 8 bits wide, simple */
|
/* 8 bits wide, simple */
|
||||||
BFD_RELOC_8,
|
BFD_RELOC_8,
|
||||||
|
|
||||||
/* 8 bits wide, pc relative */
|
/* 8 bits wide, pc relative */
|
||||||
BFD_RELOC_8_PCREL,
|
BFD_RELOC_8_PCREL,
|
||||||
|
/* 8 bits wide, but used to form an address like 0xffnn */
|
||||||
|
BFD_RELOC_8_FFnn,
|
||||||
|
|
||||||
/* The type of reloc used to build a contructor table - at the
|
/* The type of reloc used to build a contructor table - at the
|
||||||
moment probably a 32 bit wide abs address, but the cpu can
|
moment probably a 32 bit wide abs address, but the cpu can
|
||||||
|
@ -1055,11 +1075,6 @@ typedef enum bfd_reloc_code_real
|
||||||
|
|
||||||
BFD_RELOC_CTOR,
|
BFD_RELOC_CTOR,
|
||||||
|
|
||||||
/* 32 bits wide, simple reloc */
|
|
||||||
BFD_RELOC_32,
|
|
||||||
/* 32 bits, PC-relative */
|
|
||||||
BFD_RELOC_32_PCREL,
|
|
||||||
|
|
||||||
/* High 22 bits of 32-bit value; simple reloc. */
|
/* High 22 bits of 32-bit value; simple reloc. */
|
||||||
BFD_RELOC_HI22,
|
BFD_RELOC_HI22,
|
||||||
/* Low 10 bits. */
|
/* Low 10 bits. */
|
||||||
|
@ -1069,7 +1084,6 @@ typedef enum bfd_reloc_code_real
|
||||||
BFD_RELOC_24_PCREL,
|
BFD_RELOC_24_PCREL,
|
||||||
BFD_RELOC_I960_CALLJ,
|
BFD_RELOC_I960_CALLJ,
|
||||||
|
|
||||||
BFD_RELOC_16_PCREL,
|
|
||||||
/* 32-bit pc-relative, shifted right 2 bits (i.e., 30-bit
|
/* 32-bit pc-relative, shifted right 2 bits (i.e., 30-bit
|
||||||
word displacement, e.g. for SPARC) */
|
word displacement, e.g. for SPARC) */
|
||||||
BFD_RELOC_32_PCREL_S2,
|
BFD_RELOC_32_PCREL_S2,
|
||||||
|
@ -1095,6 +1109,22 @@ typedef enum bfd_reloc_code_real
|
||||||
/* this one is a.out specific? */
|
/* this one is a.out specific? */
|
||||||
BFD_RELOC_SPARC_BASE22,
|
BFD_RELOC_SPARC_BASE22,
|
||||||
|
|
||||||
|
/* start-sanitize-v9 */
|
||||||
|
BFD_RELOC_SPARC_WDISP19,
|
||||||
|
BFD_RELOC_SPARC_10,
|
||||||
|
BFD_RELOC_SPARC_11,
|
||||||
|
#define BFD_RELOC_SPARC_64 BFD_RELOC_64
|
||||||
|
BFD_RELOC_SPARC_OLO10,
|
||||||
|
BFD_RELOC_SPARC_HH22,
|
||||||
|
BFD_RELOC_SPARC_HM10,
|
||||||
|
BFD_RELOC_SPARC_LM22,
|
||||||
|
BFD_RELOC_SPARC_PC_HH22,
|
||||||
|
BFD_RELOC_SPARC_PC_HM10,
|
||||||
|
BFD_RELOC_SPARC_PC_LM22,
|
||||||
|
BFD_RELOC_SPARC_WDISP16,
|
||||||
|
BFD_RELOC_SPARC_GLOB_JMP,
|
||||||
|
BFD_RELOC_SPARC_LO7,
|
||||||
|
/* end-sanitize-v9 */
|
||||||
/* Bits 27..2 of the relocation address shifted right 2 bits;
|
/* Bits 27..2 of the relocation address shifted right 2 bits;
|
||||||
simple reloc otherwise. */
|
simple reloc otherwise. */
|
||||||
BFD_RELOC_MIPS_JMP,
|
BFD_RELOC_MIPS_JMP,
|
||||||
|
|
Loading…
Reference in a new issue