objdiff icon indicating copy to clipboard operation
objdiff copied to clipboard

Make label prefixes user configurable

Open tomsons26 opened this issue 6 months ago • 1 comments

currently to ignore prefixes somewhat specific to my workflow i have to edit is_local_label to have const LABEL_PREFIXES: &[&str] = &[".L", "off_", "loc_", "LAB_", "$L"]; would be good if these were specifiable in the config file instead as there's many prefixes across many compilers/assemblers, objdiff shouldn't be trying to cover them all

tomsons26 avatar Aug 16 '25 13:08 tomsons26

{
  "ignore_local_labels": [".L", "LAB_", "loc_", "jpt_", "off_", "switchD_", "$L"]
}

Something like this could work, it is preferable to be project-specific, so it'd go into objdiff.json. switchD_ is so universal now it might as well be in the default list.

ifarbod avatar Aug 17 '25 20:08 ifarbod