Allow for sections to have duplicate names #6411
Labels
File Format: SharedCache
Issue with the dyld_shared_cache plugin
State: Awaiting Triage
Issue is waiting for more in-depth triage from a developer
Milestone
What is the feature you'd like to have?
Sections with the same name should be allowed.
Is your feature request related to a problem?
Currently if multiple sections are added to a binary view with the same name only the first instance is displayed in the UI. This means that only 1 will appear in the sections list at the top of the linear view. This applies to the sections table under the
Memory Map
panel. Also there should be text where a section starts and ends in the linear view, as well as a sticky header showing the current section name as you scroll through it. This is not the case for sections with duplicate names (except for the first instance).Loading
libsystem_c.dylib
from the DYLD Shared Cache in IDA provides the following sections:As you can see there are a number of duplicate sections like
__data
and__const
.Doing the same in Binary Ninja you get much less:
The Binary Ninja DYLD Shared Cache plugin is aware of the sections and does try to add them but the core API disallows the duplicate named sections. When scrolling through the linear view the data in the duplicate sections is viewable, just not marked as a section.
Are any alternative solutions acceptable?
Probably not, duplicate section names appears to be intended and supported behaviour for executables (at least for Mach-O) so it would make sense for Binary Ninja to accurately reflect that.
Additional Information:
I wasn't sure to whether to file this as a bug or a feature request. It seems the behaviour is intended so I figured this should be a feature request.
The text was updated successfully, but these errors were encountered: