summaryrefslogtreecommitdiffstats
path: root/recipes/glibc/glibc-2.5/nios2-elf.patch
blob: 240bbeca8a6661f1d04d8c462c8e4bcdc96e08ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
*** glibc-2.5/elf/elf.h	2010-05-31 16:05:58.000000000 +0200
--- glibc-2.5-/elf/elf.h	2008-12-19 00:35:12.000000000 +0100
***************
*** 250,255 ****
--- 250,257 ----
  #define EM_XTENSA	94		/* Tensilica Xtensa Architecture */
  #define EM_NUM		95
  
+ #define EM_ALTERA_NIOS2 113             /* Altera Nios II */
+ 
  /* If it is necessary to assign new unofficial EM_* values, please
     pick large random numbers (0x8523, 0xa7f2, etc.) to minimize the
     chances of collision with official or non-GNU unofficial values.  */
***************
*** 1511,1518 ****
  #define R_MIPS_TLS_TPREL64	48	/* TP-relative offset, 64 bit */
  #define R_MIPS_TLS_TPREL_HI16	49	/* TP-relative offset, high 16 bits */
  #define R_MIPS_TLS_TPREL_LO16	50	/* TP-relative offset, low 16 bits */
  /* Keep this the last entry.  */
! #define R_MIPS_NUM		51
  
  /* Legal values for p_type field of Elf32_Phdr.  */
  
--- 1513,1521 ----
  #define R_MIPS_TLS_TPREL64	48	/* TP-relative offset, 64 bit */
  #define R_MIPS_TLS_TPREL_HI16	49	/* TP-relative offset, high 16 bits */
  #define R_MIPS_TLS_TPREL_LO16	50	/* TP-relative offset, low 16 bits */
+ #define R_MIPS_GLOB_DAT		51
  /* Keep this the last entry.  */
! #define R_MIPS_NUM		52
  
  /* Legal values for p_type field of Elf32_Phdr.  */
  
***************
*** 2602,2607 ****
--- 2605,2655 ----
  #define R_M32R_GOTOFF_LO	64	/* Low 16 bit offset to GOT */
  #define R_M32R_NUM		256	/* Keep this the last entry. */
  
+ /* Legal values for d_tag (dynamic entry type).  */
+ #define DT_NIOS2_GP             0x70000002 /* Address of _gp.  */
+ 
+ /* Nios II relocs.  */
+ #define R_NIOS2_NONE            0       /* No reloc.  */
+ #define R_NIOS2_S16             1       /* Direct signed 16 bit.  */
+ #define R_NIOS2_U16             2       /* Direct unsigned 16 bit.  */
+ #define R_NIOS2_PCREL16         3       /* PC relative 16 bit.  */
+ #define R_NIOS2_CALL26          4
+ #define R_NIOS2_IMM5            5
+ #define R_NIOS2_CACHE_OPX       6
+ #define R_NIOS2_IMM6            7
+ #define R_NIOS2_IMM8            8
+ #define R_NIOS2_HI16            9
+ #define R_NIOS2_LO16            10
+ #define R_NIOS2_HIADJ16         11
+ #define R_NIOS2_BFD_RELOC_32    12
+ #define R_NIOS2_BFD_RELOC_16    13
+ #define R_NIOS2_BFD_RELOC_8     14
+ #define R_NIOS2_GPREL           15
+ #define R_NIOS2_GNU_VTINHERIT   16
+ #define R_NIOS2_GNU_VTENTRY     17
+ #define R_NIOS2_UJMP            18
+ #define R_NIOS2_CJMP            19
+ #define R_NIOS2_CALLR           20
+ #define R_NIOS2_ALIGN           21
+ #define R_NIOS2_GOT16           22
+ #define R_NIOS2_CALL16          23
+ #define R_NIOS2_GOTOFF_LO       24
+ #define R_NIOS2_GOTOFF_HA       25
+ #define R_NIOS2_PCREL_LO        26
+ #define R_NIOS2_PCREL_HA        27
+ #define R_NIOS2_TLS_GD16        28
+ #define R_NIOS2_TLS_LDM16       29
+ #define R_NIOS2_TLS_LDO16       30
+ #define R_NIOS2_TLS_IE16        31
+ #define R_NIOS2_TLS_LE16        32
+ #define R_NIOS2_TLS_DTPMOD      33
+ #define R_NIOS2_TLS_DTPREL      34
+ #define R_NIOS2_TLS_TPREL       35
+ #define R_NIOS2_COPY            36
+ #define R_NIOS2_GLOB_DAT        37
+ #define R_NIOS2_JUMP_SLOT       38
+ #define R_NIOS2_RELATIVE        39
+ #define R_NIOS2_GOTOFF          40
  
  __END_DECLS