Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149547
b: refs/heads/master
c: 028f042
h: refs/heads/master
i:
  149545: 706cbb6
  149543: 98f8ac3
v: v3
  • Loading branch information
Robin Getz authored and Sam Ravnborg committed Jun 14, 2009
1 parent bdee331 commit a215918
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2185a5ecd98d2cebc6a29b07b1ea4f7334c2ccc3
refs/heads/master: 028f042613c3c99db20dd7f4e4069fbbcea92dd7
13 changes: 12 additions & 1 deletion trunk/scripts/kallsyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ struct sym_entry {
static struct sym_entry *table;
static unsigned int table_size, table_cnt;
static unsigned long long _text, _stext, _etext, _sinittext, _einittext;
static unsigned long long _stext_l1, _etext_l1, _stext_l2, _etext_l2;
static int all_symbols = 0;
static char symbol_prefix_char = '\0';

Expand Down Expand Up @@ -92,6 +93,14 @@ static int read_symbol(FILE *in, struct sym_entry *s)
_sinittext = s->addr;
else if (strcmp(sym, "_einittext") == 0)
_einittext = s->addr;
else if (strcmp(sym, "_stext_l1") == 0)
_stext_l1 = s->addr;
else if (strcmp(sym, "_etext_l1") == 0)
_etext_l1 = s->addr;
else if (strcmp(sym, "_stext_l2") == 0)
_stext_l2 = s->addr;
else if (strcmp(sym, "_etext_l2") == 0)
_etext_l2 = s->addr;
else if (toupper(stype) == 'A')
{
/* Keep these useful absolute symbols */
Expand Down Expand Up @@ -157,7 +166,9 @@ static int symbol_valid(struct sym_entry *s)
* and inittext sections are discarded */
if (!all_symbols) {
if ((s->addr < _stext || s->addr > _etext)
&& (s->addr < _sinittext || s->addr > _einittext))
&& (s->addr < _sinittext || s->addr > _einittext)
&& (s->addr < _stext_l1 || s->addr > _etext_l1)
&& (s->addr < _stext_l2 || s->addr > _etext_l2))
return 0;
/* Corner case. Discard any symbols with the same value as
* _etext _einittext; they can move between pass 1 and 2 when
Expand Down

0 comments on commit a215918

Please sign in to comment.