Skip to content

Commit

Permalink
clean code again
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Yang committed Jul 25, 2024
1 parent f6080ff commit 7ab589b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions util/fipstools/inject_hash/macho_parser/macho_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,14 @@ int find_macho_symbol_index(uint8_t *symbol_table_data, size_t symbol_table_size
struct nlist_64 *symbol = (struct nlist_64 *)(symbol_table_data + i * sizeof(struct nlist_64));

// Skip debugging symbols
//
// #define N_STAB 0xe0 /* if any of these bits set, a symbolic debugging entry */
//
// "Only symbolic debugging entries have some of the N_STAB bits set and if any of these bits are set then it is
// a symbolic debugging entry (a stab). In which case then the values of the n_type field (the entire field)
// are given in <mach-o/stab.h>"
//
// https://github.com/apple-oss-distributions/xnu/blob/main/EXTERNAL_HEADERS/mach-o/nlist.h
//
// #define N_STAB 0xe0 /* if any of these bits set, a symbolic debugging entry */
//
// "Only symbolic debugging entries have some of the N_STAB bits set and if any of these bits are set then it is
// a symbolic debugging entry (a stab). In which case then the values of the n_type field (the entire field)
// are given in <mach-o/stab.h>"
//
// https://github.com/apple-oss-distributions/xnu/blob/main/EXTERNAL_HEADERS/mach-o/nlist.h
if (symbol->n_type & N_STAB) {
continue;
}
Expand Down

0 comments on commit 7ab589b

Please sign in to comment.