Rizin
unix-like reverse engineering framework and cli tools
elf32-xtensa.c File Reference
#include "sysdep.h"
#include "disas-asm.h"
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include "bfdlink.h"
#include "elf-bfd.h"
#include "elf/xtensa.h"
#include "xtensa-isa.h"

Go to the source code of this file.

Macros

#define XTENSA_NO_NOP_REMOVAL   0
 

Functions

int filename_cmp (const char *s1, const char *s2)
 

Variables

xtensa_isa xtensa_default_isa
 

Macro Definition Documentation

◆ XTENSA_NO_NOP_REMOVAL

#define XTENSA_NO_NOP_REMOVAL   0

Definition at line 35 of file elf32-xtensa.c.

Function Documentation

◆ filename_cmp()

int filename_cmp ( const char *  s1,
const char *  s2 
)

Definition at line 151 of file elf32-xtensa.c.

152 {
153 #if !defined(HAVE_DOS_BASED_FILE_SYSTEM) \
154  && !defined(HAVE_CASE_INSENSITIVE_FILE_SYSTEM)
155  return strcmp(s1, s2);
156 #else
157  for (;;)
158  {
159  int c1 = *s1;
160  int c2 = *s2;
161 
162 #if defined (HAVE_CASE_INSENSITIVE_FILE_SYSTEM)
163  c1 = TOLOWER (c1);
164  c2 = TOLOWER (c2);
165 #endif
166 
167 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
168  /* On DOS-based file systems, the '/' and the '\' are equivalent. */
169  if (c1 == '/')
170  c1 = '\\';
171  if (c2 == '/')
172  c2 = '\\';
173 #endif
174 
175  if (c1 != c2)
176  return (c1 - c2);
177 
178  if (c1 == '\0')
179  return 0;
180 
181  s1++;
182  s2++;
183  }
184 #endif
185 }
lsl lsr asr ror lsl lsr asr ror lsl lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror c1
lsl lsr asr ror lsl lsr asr ror lsl lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror c2
#define TOLOWER(c)
Definition: safe-ctype.h:114
#define s1(x)
Definition: sha256.c:60

References c1, c2, s1, s2, and TOLOWER.

Referenced by xtensa_regfile_lookup(), and xtensa_regfile_lookup_shortname().

Variable Documentation

◆ xtensa_default_isa

xtensa_isa xtensa_default_isa

Definition at line 147 of file elf32-xtensa.c.

Referenced by fetch_data(), print_insn_xtensa(), print_xtensa_operand(), and xtensa_op().