RTEMS CPU Kit with SuperCore  4.11.2
Typedefs | Functions
rtl-unwind-dw2.h File Reference

RTEMS Run-Time Linker Unwind DWARF Support. More...

#include "rtl-elf.h"
Include dependency graph for rtl-unwind-dw2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef long rtems_rtl_elf_unwind_dw2_sleb128
 
typedef unsigned long rtems_rtl_elf_unwind_dw2_uleb128
 

Functions

bool rtems_rtl_elf_unwind_dw2_parse (const rtems_rtl_obj_t *obj, const char *name, uint32_t flags)
 Architecture specific handler to check if a section contains exception handler data. More...
 
bool rtems_rtl_elf_unwind_dw2_register (const rtems_rtl_obj_t *obj)
 Architecture specific handler to add an object file's unwind information to the base image. More...
 
bool rtems_rtl_elf_unwind_dw2_deregister (const rtems_rtl_obj_t *obj)
 Architecture specific handler to remove an object file's unwind information from the base image. More...
 
const uint8_t * rtems_rtl_elf_unwind_dw2_read_uleb128 (const uint8_t *data, rtems_rtl_elf_unwind_dw2_uleb128 *val)
 Read signed and unsigned LEB128 values.
 
const uint8_t * rtems_rtl_elf_unwind_dw2_read_sleb128 (const uint8_t *data, rtems_rtl_elf_unwind_dw2_sleb128 *val)
 
bool rtems_rtl_elf_unwind_dw2_relocate (const Elf_Addr *where, Elf_Word value, Elf_Word mask)
 

Detailed Description

RTEMS Run-Time Linker Unwind DWARF Support.

Function Documentation

◆ rtems_rtl_elf_unwind_dw2_deregister()

bool rtems_rtl_elf_unwind_dw2_deregister ( const rtems_rtl_obj_t obj)

Architecture specific handler to remove an object file's unwind information from the base image.

Parameters
objThe object file.
Return values
trueThe unwind information has been deregistered.
falseThe unwind information could not be deregistered.

References rtems_rtl_obj_sect_s::base, rtems_rtl_obj_find_section(), and rtems_rtl_obj_sect_s::size.

Referenced by rtems_rtl_elf_unwind_deregister().

◆ rtems_rtl_elf_unwind_dw2_parse()

bool rtems_rtl_elf_unwind_dw2_parse ( const rtems_rtl_obj_t obj,
const char *  name,
uint32_t  flags 
)

Architecture specific handler to check if a section contains exception handler data.

Parameters
objThe object file.
nameThe section's name.
uint32flags The object file's flags.
Return values
trueThe section contains unwind information.
falseThe section does not contain unwind information.

References RTEMS_RTL_OBJ_SECT_CONST.

Referenced by rtems_rtl_elf_unwind_parse().

◆ rtems_rtl_elf_unwind_dw2_register()

bool rtems_rtl_elf_unwind_dw2_register ( const rtems_rtl_obj_t obj)

Architecture specific handler to add an object file's unwind information to the base image.

Parameters
objThe object file.
Return values
trueThe unwind information has been registered.
falseThe unwind information could not be registered.

References rtems_rtl_obj_sect_s::base, rtems_rtl_obj_find_section(), and rtems_rtl_obj_sect_s::size.

Referenced by rtems_rtl_elf_unwind_register().