Subversion Repositories Kolibri OS

Rev

Rev 5191 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5191 Rev 6324
Line 1... Line 1...
1
/* Altera Nios II ELF support for BFD.
1
/* Altera Nios II ELF support for BFD.
2
   Copyright (C) 2012, 2013 Free Software Foundation, Inc.
2
   Copyright (C) 2012-2015 Free Software Foundation, Inc.
3
   Contributed by Nigel Gray (ngray@altera.com).
3
   Contributed by Nigel Gray (ngray@altera.com).
4
   Contributed by Mentor Graphics, Inc.
4
   Contributed by Mentor Graphics, Inc.
Line 5... Line 5...
5
 
5
 
Line 32... Line 32...
32
/* The order of these numbers must match the order in
32
/* The order of these numbers must match the order in
33
   the elf_nios2_howto_table_rel table for the lookup
33
   the elf_nios2_howto_table_rel table for the lookup
34
   function to work properly.  */
34
   function to work properly.  */
Line 35... Line 35...
35
 
35
 
-
 
36
START_RELOC_NUMBERS (elf_nios2_reloc_type)
-
 
37
  /* Relocs used by both R1 and R2, with different howtos to match
36
START_RELOC_NUMBERS (elf_nios2_reloc_type)
38
     the respective encodings.  */
37
  RELOC_NUMBER (R_NIOS2_NONE,	  0)
39
  RELOC_NUMBER (R_NIOS2_NONE,	  0)
38
  RELOC_NUMBER (R_NIOS2_S16,	  1)
40
  RELOC_NUMBER (R_NIOS2_S16,	  1)
39
  RELOC_NUMBER (R_NIOS2_U16,	  2)
41
  RELOC_NUMBER (R_NIOS2_U16,	  2)
40
  RELOC_NUMBER (R_NIOS2_PCREL16, 3)
42
  RELOC_NUMBER (R_NIOS2_PCREL16, 3)
Line 73... Line 75...
73
  RELOC_NUMBER (R_NIOS2_COPY, 36)
75
  RELOC_NUMBER (R_NIOS2_COPY, 36)
74
  RELOC_NUMBER (R_NIOS2_GLOB_DAT, 37)
76
  RELOC_NUMBER (R_NIOS2_GLOB_DAT, 37)
75
  RELOC_NUMBER (R_NIOS2_JUMP_SLOT, 38)
77
  RELOC_NUMBER (R_NIOS2_JUMP_SLOT, 38)
76
  RELOC_NUMBER (R_NIOS2_RELATIVE, 39)
78
  RELOC_NUMBER (R_NIOS2_RELATIVE, 39)
77
  RELOC_NUMBER (R_NIOS2_GOTOFF, 40)
79
  RELOC_NUMBER (R_NIOS2_GOTOFF, 40)
-
 
80
  RELOC_NUMBER (R_NIOS2_CALL26_NOAT,  41)
-
 
81
  RELOC_NUMBER (R_NIOS2_GOT_LO, 42)
-
 
82
  RELOC_NUMBER (R_NIOS2_GOT_HA, 43)
-
 
83
  RELOC_NUMBER (R_NIOS2_CALL_LO, 44)
-
 
84
  RELOC_NUMBER (R_NIOS2_CALL_HA, 45)
-
 
85
 
-
 
86
  /* Relocs specific to R2.  */
-
 
87
  RELOC_NUMBER (R_NIOS2_R2_S12, 64)
-
 
88
  RELOC_NUMBER (R_NIOS2_R2_I10_1_PCREL, 65)
-
 
89
  RELOC_NUMBER (R_NIOS2_R2_T1I7_1_PCREL, 66)
-
 
90
  RELOC_NUMBER (R_NIOS2_R2_T1I7_2, 67)
-
 
91
  RELOC_NUMBER (R_NIOS2_R2_T2I4, 68)
-
 
92
  RELOC_NUMBER (R_NIOS2_R2_T2I4_1, 69)
-
 
93
  RELOC_NUMBER (R_NIOS2_R2_T2I4_2, 70)
-
 
94
  RELOC_NUMBER (R_NIOS2_R2_X1I7_2, 71)
-
 
95
  RELOC_NUMBER (R_NIOS2_R2_X2L5, 72)
-
 
96
  RELOC_NUMBER (R_NIOS2_R2_F1I5_2, 73)
-
 
97
  RELOC_NUMBER (R_NIOS2_R2_L5I4X1, 74)
-
 
98
  RELOC_NUMBER (R_NIOS2_R2_T1X1I6, 75)
-
 
99
  RELOC_NUMBER (R_NIOS2_R2_T1X1I6_2, 76)
-
 
100
 
-
 
101
  /* Last reloc.  */
78
  RELOC_NUMBER (R_NIOS2_ILLEGAL, 41)
102
  RELOC_NUMBER (R_NIOS2_ILLEGAL, 77)
79
END_RELOC_NUMBERS (R_NIOS2_maxext)
103
END_RELOC_NUMBERS (R_NIOS2_maxext)
Line 80... Line 104...
80
 
104
 
Line 81... Line 105...
81
/* Processor-specific section flags.  */
105
/* Processor-specific section flags.  */
Line 86... Line 110...
86
/* Processor-specific dynamic array tags.  */
110
/* Processor-specific dynamic array tags.  */
Line 87... Line 111...
87
 
111
 
88
/* Address of _gp.  */
112
/* Address of _gp.  */
Line -... Line 113...
-
 
113
#define DT_NIOS2_GP 0x70000002
-
 
114
 
-
 
115
/* Processor specific flags for the Elf header e_flags field.  */
-
 
116
 
-
 
117
#define EF_NIOS2_ARCH_R1 0x00000000
89
#define DT_NIOS2_GP 0x70000002
118
#define EF_NIOS2_ARCH_R2 0x00000001