Back to index

cell-binutils  2.17cvs20070401
Defines | Functions
sh.h File Reference
#include "elf/reloc-macros.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define EF_SH_MACH_MASK   0x1f
#define EF_SH_UNKNOWN   0 /* For backwards compatibility. */
#define EF_SH1   1
#define EF_SH2   2
#define EF_SH3   3
#define EF_SH_DSP   4
#define EF_SH3_DSP   5
#define EF_SH4AL_DSP   6
#define EF_SH3E   8
#define EF_SH4   9
#define EF_SH2E   11
#define EF_SH4A   12
#define EF_SH2A   13
#define EF_SH4_NOFPU   16
#define EF_SH4A_NOFPU   17
#define EF_SH4_NOMMU_NOFPU   18
#define EF_SH2A_NOFPU   19
#define EF_SH3_NOMMU   20
#define EF_SH2A_SH4_NOFPU   21
#define EF_SH2A_SH3_NOFPU   22
#define EF_SH2A_SH4   23
#define EF_SH2A_SH3E   24
#define EF_SH5   10
#define EF_SH_BFD_TABLE
#define STO_SH5_ISA32   (1 << 2)
#define SHF_SH5_ISA32   0x40000000
#define SHF_SH5_ISA32_MIXED   0x20000000
#define SHT_SH5_CR_SORTED   0x80000001
#define STT_DATALABEL   STT_LOPROC

Functions

int sh_find_elf_flags (unsigned int arch_set)
int sh_elf_get_flags_from_mach (unsigned long mach)

Define Documentation

#define EF_SH1   1

Definition at line 27 of file sh.h.

#define EF_SH2   2

Definition at line 28 of file sh.h.

#define EF_SH2A   13

Definition at line 37 of file sh.h.

#define EF_SH2A_NOFPU   19

Definition at line 42 of file sh.h.

#define EF_SH2A_SH3_NOFPU   22

Definition at line 46 of file sh.h.

#define EF_SH2A_SH3E   24

Definition at line 48 of file sh.h.

#define EF_SH2A_SH4   23

Definition at line 47 of file sh.h.

#define EF_SH2A_SH4_NOFPU   21

Definition at line 45 of file sh.h.

#define EF_SH2E   11

Definition at line 35 of file sh.h.

#define EF_SH3   3

Definition at line 29 of file sh.h.

#define EF_SH3_DSP   5

Definition at line 31 of file sh.h.

#define EF_SH3_NOMMU   20

Definition at line 43 of file sh.h.

#define EF_SH3E   8

Definition at line 33 of file sh.h.

#define EF_SH4   9

Definition at line 34 of file sh.h.

#define EF_SH4_NOFPU   16

Definition at line 39 of file sh.h.

#define EF_SH4_NOMMU_NOFPU   18

Definition at line 41 of file sh.h.

#define EF_SH4A   12

Definition at line 36 of file sh.h.

#define EF_SH4A_NOFPU   17

Definition at line 40 of file sh.h.

#define EF_SH4AL_DSP   6

Definition at line 32 of file sh.h.

#define EF_SH5   10

Definition at line 51 of file sh.h.

#define EF_SH_BFD_TABLE
Value:
/* EF_SH_UNKNOWN     */ bfd_mach_sh3             , \
/* EF_SH1            */ bfd_mach_sh              , \
/* EF_SH2            */ bfd_mach_sh2             , \
/* EF_SH3            */ bfd_mach_sh3             , \
/* EF_SH_DSP         */ bfd_mach_sh_dsp   , \
/* EF_SH3_DSP        */ bfd_mach_sh3_dsp  , \
/* EF_SHAL_DSP              */ bfd_mach_sh4al_dsp       , \
/* 7                 */ 0, \
/* EF_SH3E           */ bfd_mach_sh3e     , \
/* EF_SH4            */ bfd_mach_sh4             , \
/* EF_SH5            */ 0, \
/* EF_SH2E           */ bfd_mach_sh2e     , \
/* EF_SH4A           */ bfd_mach_sh4a     , \
/* EF_SH2A           */ bfd_mach_sh2a        , \
/* 14, 15            */ 0, 0, \
/* EF_SH4_NOFPU             */ bfd_mach_sh4_nofpu       , \
/* EF_SH4A_NOFPU     */ bfd_mach_sh4a_nofpu      , \
/* EF_SH4_NOMMU_NOFPU       */ bfd_mach_sh4_nommu_nofpu, \
/* EF_SH2A_NOFPU     */ bfd_mach_sh2a_nofpu  , \
/* EF_SH3_NOMMU             */ bfd_mach_sh3_nommu   , \
/* EF_SH2A_SH4_NOFPU    */ bfd_mach_sh2a_nofpu_or_sh4_nommu_nofpu, \
/* EF_SH2A_SH3_NOFPU    */ bfd_mach_sh2a_nofpu_or_sh3_nommu, \
/* EF_SH2A_SH4          */ bfd_mach_sh2a_or_sh4 , \
/* EF_SH2A_SH3E         */ bfd_mach_sh2a_or_sh3e

Definition at line 56 of file sh.h.

#define EF_SH_DSP   4

Definition at line 30 of file sh.h.

#define EF_SH_MACH_MASK   0x1f

Definition at line 25 of file sh.h.

#define EF_SH_UNKNOWN   0 /* For backwards compatibility. */

Definition at line 26 of file sh.h.

#define SHF_SH5_ISA32   0x40000000

Definition at line 95 of file sh.h.

#define SHF_SH5_ISA32_MIXED   0x20000000

Definition at line 99 of file sh.h.

#define SHT_SH5_CR_SORTED   0x80000001

Definition at line 103 of file sh.h.

#define STO_SH5_ISA32   (1 << 2)

Definition at line 92 of file sh.h.

#define STT_DATALABEL   STT_LOPROC

Definition at line 107 of file sh.h.


Function Documentation

Definition at line 5341 of file elf32-sh.c.

{
  int i = ARRAY_SIZE (sh_ef_bfd_table) - 1;
  
  for (; i>0; i--)
    if (sh_ef_bfd_table[i] == mach)
      return i;
  
  /* shouldn't get here */
  BFD_FAIL();

  return -1;
}

Definition at line 5391 of file elf32-sh.c.

{
  extern unsigned long sh_get_bfd_mach_from_arch_set (unsigned int);
  unsigned long bfd_mach = sh_get_bfd_mach_from_arch_set (arch_set);

  return sh_elf_get_flags_from_mach (bfd_mach);
}

Here is the call graph for this function: