Skip to content

Commit a6a9b6f

Browse files
authored
Add GCC pattern for generated symbols (#394)
1 parent 784a167 commit a6a9b6f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎objdiff-core/src/obj/read.rs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ fn is_symbol_name_compiler_generated(name: &str) -> bool {
9595
if name.starts_with('@') && name[1..].chars().all(char::is_numeric) {
9696
// Exclude @stringBase0, @GUARD@, etc.
9797
return true;
98-
} else if name.starts_with("_$E") && name[3..].chars().all(char::is_numeric) {
98+
} else if (name.starts_with("_$E") || name.starts_with("$LC"))
99+
&& name[3..].chars().all(char::is_numeric)
100+
{
99101
return true;
100102
}
101103
false

0 commit comments

Comments
 (0)