Subversion Repositories Kolibri OS

Rev

Rev 5191 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5191 Rev 6324
Line 1... Line 1...
1
/* ARC ELF support for BFD.
1
/* ARC ELF support for BFD.
2
   Copyright 1995, 1997, 1998, 2000, 2001, 2010 Free Software Foundation, Inc.
2
   Copyright (C) 1995-2015 Free Software Foundation, Inc.
3
   Contributed by Doug Evans, (dje@cygnus.com)
3
   Contributed by Doug Evans, (dje@cygnus.com)
Line 4... Line 4...
4
 
4
 
Line 5... Line 5...
5
   This file is part of BFD, the Binary File Descriptor library.
5
   This file is part of BFD, the Binary File Descriptor library.
Line 26... Line 26...
26
 
26
 
Line 27... Line 27...
27
#include "elf/reloc-macros.h"
27
#include "elf/reloc-macros.h"
Line -... Line 28...
-
 
28
 
-
 
29
/* Relocations.  */
-
 
30
 
28
 
31
#define ARC_RELOC_HOWTO(TYPE, VALUE, SIZE, BITSIZE, RELOC_FUNCTION, OVERFLOW, FORMULA) \
29
/* Relocations.  */
-
 
30
 
32
  RELOC_NUMBER(R_##TYPE, VALUE)
31
START_RELOC_NUMBERS (elf_arc_reloc_type)
-
 
32
  RELOC_NUMBER (R_ARC_NONE, 0)
-
 
33
  RELOC_NUMBER (R_ARC_32, 1)
33
 
Line -... Line 34...
-
 
34
START_RELOC_NUMBERS (elf_arc_reloc_type)
-
 
35
#include "arc-reloc.def"
34
  RELOC_NUMBER (R_ARC_B26, 2)
36
END_RELOC_NUMBERS (R_ARC_max)
Line 35... Line 37...
35
  RELOC_NUMBER (R_ARC_B22_PCREL, 3)
37
 
-
 
38
#undef ARC_RELOC_HOWTO
-
 
39
 
-
 
40
/* Processor specific flags for the ELF header e_flags field.  */
-
 
41
 
-
 
42
/* Four bit ARC machine type field.  */
Line 36... Line 43...
36
END_RELOC_NUMBERS (R_ARC_max)
43
#define EF_ARC_MACH_MSK	 0x000000ff
Line 37... Line 44...
37
 
44
#define EF_ARC_OSABI_MSK 0x00000f00
-
 
45
#define EF_ARC_ALL_MSK	 (EF_ARC_MACH_MSK | EF_ARC_OSABI_MSK)
-
 
46
 
-
 
47
/* Four bit ARC machine type field.  */
Line -... Line 48...
-
 
48
 
-
 
49
#define EF_ARC_MACH 0x0000000f
-
 
50
 
38
/* Processor specific flags for the ELF header e_flags field.  */
51
/* Various CPU types.  */
-
 
52
#define E_ARC_MACH_ARC600	0x00000002
-
 
53
#define E_ARC_MACH_ARC601	0x00000004
-
 
54
#define E_ARC_MACH_ARC700	0x00000003
39
 
55
 
40
/* Four bit ARC machine type field.  */
56
/* Processor specific flags for the ELF header e_flags field.  */
41
 
57
#define EF_ARC_CPU_GENERIC      0x00000000
Line 42... Line 58...
42
#define EF_ARC_MACH 0x0000000f
58
#define EF_ARC_CPU_ARCV2EM      0x00000005
Line 43... Line 59...
43
 
59
#define EF_ARC_CPU_ARCV2HS      0x00000006