RTEMS CPU Kit with SuperCore  4.11.3
Functions
rtl-mdreloc-m32r.c File Reference
#include <sys/cdefs.h>
#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <rtems/rtl/rtl.h>
#include "rtl-elf.h"
#include "rtl-error.h"
#include "rtl-trace.h"
Include dependency graph for rtl-mdreloc-m32r.c:

Functions

bool rtems_rtl_elf_rel_resolve_sym (Elf_Word type)
 Architecture specific handler to check is a relocation record's type is required to resolve a symbol. More...
 
bool rtems_rtl_elf_relocate_rela (const rtems_rtl_obj_t *obj, const Elf_Rela *rela, const rtems_rtl_obj_sect_t *sect, const char *symname, const Elf_Byte syminfo, const Elf_Word symvalue)
 Architecture specific relocation handler compiled in for a specific architecture by the build system. More...
 
bool rtems_rtl_elf_relocate_rel (const rtems_rtl_obj_t *obj, const Elf_Rel *rel, const rtems_rtl_obj_sect_t *sect, const char *symname, const Elf_Byte syminfo, const Elf_Word symvalue)
 Architecture specific relocation handler compiled in for a specific architecture by the build system. More...
 

Function Documentation

◆ rtems_rtl_elf_rel_resolve_sym()

bool rtems_rtl_elf_rel_resolve_sym ( Elf_Word  type)

Architecture specific handler to check is a relocation record's type is required to resolve a symbol.

Parameters
typeThe type field in the relocation record.
Return values
trueThe relocation record require symbol resolution.
falseThe relocation record does not require symbol resolution.

References rtems_rtl_elf_relocate_rela().

◆ rtems_rtl_elf_relocate_rel()

bool rtems_rtl_elf_relocate_rel ( const rtems_rtl_obj_t obj,
const Elf_Rel *  rel,
const rtems_rtl_obj_sect_t sect,
const char *  symname,
const Elf_Byte  syminfo,
const Elf_Word  symvalue 
)

Architecture specific relocation handler compiled in for a specific architecture by the build system.

The handler applies the relocation to the target.

Parameters
objThe object file being relocated.
relThe ELF relocation record.
sectThe section of the object file the relocation is for.
symnameThe symbol's name.
syminfoThe ELF symbol info field.
symvalueIf a symbol is referenced, this is the symbols value.
Return values
boolThe relocation has been applied.
boolThe relocation could not be applied.

References rtems_rtl_set_error().

◆ rtems_rtl_elf_relocate_rela()

bool rtems_rtl_elf_relocate_rela ( const rtems_rtl_obj_t obj,
const Elf_Rela *  rela,
const rtems_rtl_obj_sect_t sect,
const char *  symname,
const Elf_Byte  syminfo,
const Elf_Word  symvalue 
)

Architecture specific relocation handler compiled in for a specific architecture by the build system.

The handler applies the relocation to the target.

Parameters
objThe object file being relocated.
relaThe ELF addend relocation record.
sectThe section of the object file the relocation is for.
symnameThe symbol's name.
syminfoThe ELF symbol info field.
symvalueIf a symbol is referenced, this is the symbols value.
Return values
boolThe relocation has been applied.
boolThe relocation could not be applied.

References rtems_rtl_obj_sect_s::base, and rtems_rtl_trace().

Referenced by rtems_rtl_elf_rel_resolve_sym().