RTEMS CPU Kit with SuperCore
4.11.3
|
#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"
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... | |
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.
type | The type field in the relocation record. |
true | The relocation record require symbol resolution. |
false | The relocation record does not require symbol resolution. |
References rtems_rtl_elf_relocate_rela().
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.
obj | The object file being relocated. |
rel | The ELF relocation record. |
sect | The section of the object file the relocation is for. |
symname | The symbol's name. |
syminfo | The ELF symbol info field. |
symvalue | If a symbol is referenced, this is the symbols value. |
bool | The relocation has been applied. |
bool | The relocation could not be applied. |
References rtems_rtl_set_error().
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.
obj | The object file being relocated. |
rela | The ELF addend relocation record. |
sect | The section of the object file the relocation is for. |
symname | The symbol's name. |
syminfo | The ELF symbol info field. |
symvalue | If a symbol is referenced, this is the symbols value. |
bool | The relocation has been applied. |
bool | The relocation could not be applied. |
References rtems_rtl_obj_sect_s::base, and rtems_rtl_trace().
Referenced by rtems_rtl_elf_rel_resolve_sym().