summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorRusty Wagner <rusty.wagner@gmail.com>2024-01-04 10:55:56 -0700
committerRusty Wagner <rusty.wagner@gmail.com>2024-01-04 12:42:14 -0700
commite27a7226a23f0276360542a69570e58b0edc9747 (patch)
treeae2a49a42a7a05aa2c4ef4e58d4de9d00e1164b1 /python
parent5a2d058c381a5fa0889464772b7399df2f39ebe8 (diff)
Add local label symbol type to always prioritize normal local symbols over compiler generated labels
Diffstat (limited to 'python')
-rw-r--r--python/binaryview.py2
-rw-r--r--python/types.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index 79204942..8d72d94e 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -5293,7 +5293,7 @@ class BinaryView:
ordered_filter = [
SymbolType.FunctionSymbol, SymbolType.ImportedFunctionSymbol, SymbolType.LibraryFunctionSymbol, SymbolType.SymbolicFunctionSymbol,
SymbolType.DataSymbol, SymbolType.ImportedDataSymbol, SymbolType.ImportAddressSymbol,
- SymbolType.ExternalSymbol
+ SymbolType.ExternalSymbol, SymbolType.LocalLabelSymbol
]
_namespace = _types.NameSpace.get_core_struct(namespace)
diff --git a/python/types.py b/python/types.py
index 87e092bb..3aea1fca 100644
--- a/python/types.py
+++ b/python/types.py
@@ -398,6 +398,7 @@ class Symbol(CoreSymbol):
ExternalSymbol Symbols for data and code that reside outside the BinaryView
LibraryFunctionSymbol Symbols for functions identified as belonging to a shared library
SymbolicFunctionSymbol Symbols for functions without a concrete implementation or which have been abstractly represented
+ LocalLabelSymbol Symbol for a local label in the current binary
=========================== =================================================================
"""
def __init__(