1 .\" Copyright (c) 2006,2008 Joseph Koshy. All rights reserved.
3 .\" Redistribution and use in source and binary forms, with or without
4 .\" modification, are permitted provided that the following conditions
6 .\" 1. Redistributions of source code must retain the above copyright
7 .\" notice, this list of conditions and the following disclaimer.
8 .\" 2. Redistributions in binary form must reproduce the above copyright
9 .\" notice, this list of conditions and the following disclaimer in the
10 .\" documentation and/or other materials provided with the distribution.
12 .\" This software is provided by Joseph Koshy ``as is'' and
13 .\" any express or implied warranties, including, but not limited to, the
14 .\" implied warranties of merchantability and fitness for a particular purpose
15 .\" are disclaimed. in no event shall Joseph Koshy be liable
16 .\" for any direct, indirect, incidental, special, exemplary, or consequential
17 .\" damages (including, but not limited to, procurement of substitute goods
18 .\" or services; loss of use, data, or profits; or business interruption)
19 .\" however caused and on any theory of liability, whether in contract, strict
20 .\" liability, or tort (including negligence or otherwise) arising in any way
21 .\" out of the use of this software, even if advised of the possibility of
28 .Dt GELF_GETSYMSHNDX 3
30 .Nm gelf_getsymshndx ,
31 .Nm gelf_update_symshndx
32 .Nd read and update symbol information using extended section indices
39 .Fa "Elf_Data *symdata"
40 .Fa "Elf_Data *xndxdata"
43 .Fa "Elf32_Word *xndxptr"
46 .Fo gelf_update_symshndx
47 .Fa "Elf_Data *symdata"
48 .Fa "Elf_Data *xndxdata"
54 These functions are analogous to
58 respectively, but are capable of handling symbol tables using extended
65 descriptor associated with a section of type
71 descriptor associated with a section of type
72 .Dv SHT_SYMTAB_SHNDX .
75 is the index of the symbol table entry being retrieved or updated.
78 is a pointer to a class-independent
82 structures are described in detail in
87 retrieves symbol information at index
89 from the data descriptor specified by argument
91 and stores in class-independent form in argument
93 In addition it retrieves the extended section index for the
94 symbol from data buffer
96 and stores it into the location pointed to by argument
100 .Fn gelf_update_symshndx
101 updates the underlying symbol table entry in data
104 with the information in argument
106 In addition it sets the extended section index in
109 to the value of argument
114 returns the value of argument
116 if successful, or NULL in case of an error.
119 .Fn gelf_update_symshndx
120 returns a non-zero value if successful, or zero in case of an error.
122 These functions may fail with the following errors:
123 .Bl -tag -width "[ELF_E_RESOURCE]"
124 .It Bq Er ELF_E_ARGUMENT
132 .It Bq Er ELF_E_ARGUMENT
135 was less than zero, or too large for either of descriptors
139 .It Bq Er ELF_E_ARGUMENT
142 was not associated with a section of type
144 .It Bq Er ELF_E_ARGUMENT
147 was not associated with a section of type
148 .Dv SHT_SYMTAB_SHNDX .
149 .It Bq Er ELF_E_ARGUMENT
154 were associated with different ELF objects.
162 .Xr gelf_update_sym 3