Remove the boffset() callback from bin plugins

* it was used only for ELF, but it was already used internally
This commit is contained in:
pancake 2023-08-17 17:43:45 +02:00 committed by pancake
parent 0b625d5b3b
commit a869ae408f
6 changed files with 0 additions and 12 deletions

View File

@ -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

View File

@ -104,7 +104,6 @@ RBinPlugin r_bin_plugin_cgc = {
.destroy = &destroy,
.check = &check,
.baddr = &baddr,
.boffset = &boffset,
.binsym = &binsym,
.entries = &entries,
.sections = &sections,

View File

@ -135,7 +135,6 @@ RBinPlugin r_bin_plugin_elf = {
.destroy = &destroy,
.check = &check,
.baddr = &baddr,
.boffset = &boffset,
.binsym = &binsym,
.entries = &entries,
.sections = &sections,

View File

@ -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;

View File

@ -134,7 +134,6 @@ RBinPlugin r_bin_plugin_elf64 = {
.load = &load,
.destroy = &destroy,
.baddr = &baddr,
.boffset = &boffset,
.binsym = &binsym,
.entries = &entries,
#if R2_590

View File

@ -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