RTEMS 6.1-rc5
Loading...
Searching...
No Matches
rtl-sym.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
3/*
4 * COPYRIGHT (c) 2012-2014, 2018 Chris Johns <chrisj@rtems.org>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 *
15 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
19 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 * POSSIBILITY OF SUCH DAMAGE.
26 */
35#if !defined (_RTEMS_RTL_SYM_H_)
36#define _RTEMS_RTL_SYM_H_
37
38#include <rtems.h>
39#include "rtl-obj-fwd.h"
40
41#ifdef __cplusplus
42extern "C" {
43#endif /* __cplusplus */
44
48typedef struct rtems_rtl_obj_sym
49{
51 const char* name;
52 void* value;
53 uint32_t data;
55
59typedef struct rtems_rtl_symbols
60{
61 rtems_chain_control* buckets;
62 size_t nbuckets;
64
69typedef size_t (*rtems_rtl_tls_offset_func)(void);
70
76{
77 size_t index;
80
91 size_t buckets);
92
99
124 const unsigned char* esyms,
125 unsigned int size,
126 const rtems_rtl_tls_offset* tls_offsets,
127 unsigned int tls_size);
128
137
146
156 const char* name);
157
164
171
178
179#ifdef __cplusplus
180}
181#endif /* __cplusplus */
182
183#endif
This header file defines the RTEMS Classic API.
RTEMS Run-Time Linker ELF Headers.
void rtems_rtl_symbol_obj_erase_local(rtems_rtl_obj *obj)
Definition: rtl-sym.c:320
rtems_rtl_obj_sym * rtems_rtl_symbol_global_find(const char *name)
Definition: rtl-sym.c:222
bool rtems_rtl_symbol_global_add(rtems_rtl_obj *obj, const unsigned char *esyms, unsigned int size, const rtems_rtl_tls_offset *tls_offsets, unsigned int tls_size)
Definition: rtl-sym.c:122
void rtems_rtl_symbol_obj_sort(rtems_rtl_obj *obj)
Definition: rtl-sym.c:260
size_t(* rtems_rtl_tls_offset_func)(void)
Definition: rtl-sym.h:69
bool rtems_rtl_symbol_table_open(rtems_rtl_symbols *symbols, size_t buckets)
Definition: rtl-sym.c:97
rtems_rtl_obj_sym * rtems_rtl_symbol_obj_find(rtems_rtl_obj *obj, const char *name)
Definition: rtl-sym.c:273
void rtems_rtl_symbol_obj_add(rtems_rtl_obj *obj)
Definition: rtl-sym.c:307
void rtems_rtl_symbol_table_close(rtems_rtl_symbols *symbols)
Definition: rtl-sym.c:116
void rtems_rtl_symbol_obj_erase(rtems_rtl_obj *obj)
Definition: rtl-sym.c:332
This structure represents a chain node.
Definition: chain.h:78
Definition: rtl-sym.h:49
const char * name
Definition: rtl-sym.h:51
rtems_chain_node node
Definition: rtl-sym.h:50
uint32_t data
Definition: rtl-sym.h:53
void * value
Definition: rtl-sym.h:52
Definition: rtl-obj.h:200
Definition: rtl-sym.h:60
Definition: rtl-sym.h:76
rtems_rtl_tls_offset_func offset
Definition: rtl-sym.h:78
This union represents a chain control block.
Definition: chain.h:96