mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-21 14:50:49 +00:00
Remove the boffset() callback from bin plugins
* it was used only for ELF, but it was already used internally
This commit is contained in:
parent
0b625d5b3b
commit
a869ae408f
@ -297,10 +297,6 @@ R_API int r_bin_object_set_items(RBinFile *bf, RBinObject *bo) {
|
||||
}
|
||||
}
|
||||
|
||||
if (p->boffset) {
|
||||
// XXX this is implemented only for ELF. so im not sure why its useful
|
||||
bo->boffset = p->boffset (bf);
|
||||
}
|
||||
// XXX: no way to get info from xtr pluginz?
|
||||
// Note, object size can not be set from here due to potential
|
||||
// inconsistencies
|
||||
|
@ -104,7 +104,6 @@ RBinPlugin r_bin_plugin_cgc = {
|
||||
.destroy = &destroy,
|
||||
.check = &check,
|
||||
.baddr = &baddr,
|
||||
.boffset = &boffset,
|
||||
.binsym = &binsym,
|
||||
.entries = &entries,
|
||||
.sections = §ions,
|
||||
|
@ -135,7 +135,6 @@ RBinPlugin r_bin_plugin_elf = {
|
||||
.destroy = &destroy,
|
||||
.check = &check,
|
||||
.baddr = &baddr,
|
||||
.boffset = &boffset,
|
||||
.binsym = &binsym,
|
||||
.entries = &entries,
|
||||
.sections = §ions,
|
||||
|
@ -88,10 +88,6 @@ static ut64 baddr(RBinFile *bf) {
|
||||
return Elf_(get_baddr) (bf->bo->bin_obj);
|
||||
}
|
||||
|
||||
static ut64 boffset(RBinFile *bf) {
|
||||
return Elf_(get_boffset) (bf->bo->bin_obj);
|
||||
}
|
||||
|
||||
static RBinAddr* binsym(RBinFile *bf, int sym) {
|
||||
ELFOBJ* eo = bf->bo->bin_obj;
|
||||
RBinAddr *ret = NULL;
|
||||
|
@ -134,7 +134,6 @@ RBinPlugin r_bin_plugin_elf64 = {
|
||||
.load = &load,
|
||||
.destroy = &destroy,
|
||||
.baddr = &baddr,
|
||||
.boffset = &boffset,
|
||||
.binsym = &binsym,
|
||||
.entries = &entries,
|
||||
#if R2_590
|
||||
|
@ -505,7 +505,6 @@ typedef struct r_bin_plugin_t {
|
||||
void (*destroy)(RBinFile *bf);
|
||||
bool (*check)(RBinFile *bf, RBuffer *buf);
|
||||
ut64 (*baddr)(RBinFile *bf);
|
||||
ut64 (*boffset)(RBinFile *bf);
|
||||
RBinAddr* (*binsym)(RBinFile *bf, int num);
|
||||
RList/*<RBinAddr>*/* (*entries)(RBinFile *bf);
|
||||
RList/*<RBinSection>*/* (*sections)(RBinFile *bf); // R2_600 - deprecate
|
||||
|
Loading…
x
Reference in New Issue
Block a user