File tree Expand file tree Collapse file tree 2 files changed +12
-22
lines changed Expand file tree Collapse file tree 2 files changed +12
-22
lines changed Original file line number Diff line number Diff line change @@ -358,28 +358,7 @@ impl Arch for ArchPpc {
358
358
}
359
359
360
360
fn extra_symbol_flags ( & self , symbol : & object:: Symbol ) -> SymbolFlagSet {
361
- // X360 COFFs should automatically hide all symbols starting with "except_data",
362
- // because those are not functions - they're pointers to exception data structs
363
- if self . extensions . eq ( & powerpc:: Extensions :: xenon ( ) ) {
364
- match symbol. name ( ) {
365
- Ok ( name) => {
366
- if name. starts_with ( "except_data_" ) {
367
- SymbolFlag :: Hidden . into ( )
368
- }
369
- // if the symbol name starts with __unwind and
370
- // TODO: a "show unwinds" modifier is unchecked,
371
- // hide the symbol
372
- else if name. starts_with ( "__unwind" ) {
373
- SymbolFlag :: Hidden . into ( )
374
- }
375
- else {
376
- SymbolFlag :: none ( )
377
- }
378
- }
379
- Err ( _) => { SymbolFlag :: none ( ) }
380
- }
381
- }
382
- else if self . extab . as_ref ( ) . is_some_and ( |extab| extab. contains_key ( & ( symbol. index ( ) . 0 - 1 ) ) ) {
361
+ if self . extab . as_ref ( ) . is_some_and ( |extab| extab. contains_key ( & ( symbol. index ( ) . 0 - 1 ) ) ) {
383
362
SymbolFlag :: HasExtra . into ( )
384
363
} else {
385
364
SymbolFlag :: none ( )
Original file line number Diff line number Diff line change @@ -74,6 +74,17 @@ fn map_symbol(
74
74
{
75
75
flags |= SymbolFlag :: Hidden ;
76
76
}
77
+ if file. format ( ) == object:: BinaryFormat :: Coff
78
+ {
79
+ match symbol. name ( ) {
80
+ Ok ( name) => {
81
+ if name. starts_with ( "except_data_" ) || name. starts_with ( "__unwind" ) || name. starts_with ( "__catch" ) {
82
+ flags |= SymbolFlag :: Hidden ;
83
+ }
84
+ }
85
+ Err ( _) => { }
86
+ }
87
+ }
77
88
78
89
let kind = match symbol. kind ( ) {
79
90
object:: SymbolKind :: Text => SymbolKind :: Function ,
You can’t perform that action at this time.
0 commit comments