| 139 | } |
| 140 | |
| 141 | bool |
| 142 | CElfSymbolTable::GetInfo( |
| 143 | const_SymbolIterator sym, |
| 144 | std::string* name, |
| 145 | unsigned char* bind, |
| 146 | unsigned char* type, |
| 147 | unsigned char* other, |
| 148 | CElfSection** section, |
| 149 | Elf64_Addr* value, |
| 150 | Elf64_Xword* size) const |
| 151 | { |
| 152 | if (name == NULL || bind == NULL || type == NULL || other == NULL || |
| 153 | section == NULL || value == NULL || size == NULL) |
| 154 | { |
| 155 | return false; |
| 156 | } |
| 157 | |
| 158 | *name = sym->symName; |
| 159 | unsigned char info = sym->symEntry.st_info; |
| 160 | *bind = ELF32_ST_BIND(info); |
| 161 | *type = ELF32_ST_TYPE(info); |
| 162 | *other = sym->symEntry.st_other; |
| 163 | *section = sym->symSection; |
| 164 | *value = sym->symEntry.st_value; |
| 165 | *size = sym->symEntry.st_size; |
| 166 | |
| 167 | return true; |
| 168 | } |
| 169 | |
| 170 | bool |
| 171 | CElfSymbolTable::SetInfo( |
nothing calls this directly
no outgoing calls
no test coverage detected