Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
relocs.c File Reference
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <elf.h>
#include <byteswap.h>
#include <endian.h>
#include <regex.h>
#include <tools/le_byteshift.h>

Go to the source code of this file.

Data Structures

struct  section
 

Macros

#define USE_BSD
 
#define ARRAY_SIZE(x)   (sizeof(x) / sizeof((x)[0]))
 
#define SYM_TYPE(X)   [X] = #X
 
#define SYM_BIND(X)   [X] = #X
 
#define SYM_VISIBILITY(X)   [X] = #X
 
#define REL_TYPE(X)   [X] = #X
 
#define le16_to_cpu(val)   (val)
 
#define le32_to_cpu(val)   (val)
 
#define le16_to_cpu(val)   bswap_16(val)
 
#define le32_to_cpu(val)   bswap_32(val)
 

Enumerations

enum  symtype {
  S_ABS, S_REL, S_SEG, S_LIN,
  S_NSYMTYPES, UNINITIALIZED, REGISTER, ALIAS,
  SCBLOC, SRAMLOC, ENUM_ENTRY, FIELD,
  MASK, ENUM, CONST, DOWNLOAD_CONST,
  LABEL, CONDITIONAL, MACRO
}
 

Functions

int main (int argc, char **argv)
 

Variables

struct section __attribute__
 

Macro Definition Documentation

#define ARRAY_SIZE (   x)    (sizeof(x) / sizeof((x)[0]))

Definition at line 17 of file relocs.c.

#define le16_to_cpu (   val)    (val)

Definition at line 263 of file relocs.c.

#define le16_to_cpu (   val)    bswap_16(val)

Definition at line 263 of file relocs.c.

#define le32_to_cpu (   val)    (val)

Definition at line 264 of file relocs.c.

#define le32_to_cpu (   val)    bswap_32(val)

Definition at line 264 of file relocs.c.

#define REL_TYPE (   X)    [X] = #X
#define SYM_BIND (   X)    [X] = #X
#define SYM_TYPE (   X)    [X] = #X
#define SYM_VISIBILITY (   X)    [X] = #X
#define USE_BSD

Definition at line 10 of file relocs.c.

Enumeration Type Documentation

enum symtype
Enumerator:
S_ABS 
S_REL 
S_SEG 
S_LIN 
S_NSYMTYPES 
UNINITIALIZED 
REGISTER 
ALIAS 
SCBLOC 
SRAMLOC 
ENUM_ENTRY 
FIELD 
MASK 
ENUM 
CONST 
DOWNLOAD_CONST 
LABEL 
CONDITIONAL 
MACRO 

Definition at line 33 of file relocs.c.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 762 of file relocs.c.

Variable Documentation