From e27a7226a23f0276360542a69570e58b0edc9747 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Thu, 4 Jan 2024 10:55:56 -0700 Subject: Add local label symbol type to always prioritize normal local symbols over compiler generated labels --- python/binaryview.py | 2 +- python/types.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'python') 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__( -- cgit v1.3.1