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';
_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 */
* 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