Commit d6dbffaf authored by strauman's avatar strauman
Browse files

- cexpsyms.c: don't print warning when removing redundant symbols

   with different addresses; seems they can point to plt and executable...
parent 32ff3bdc
Changes since CEXP-2.1
2013/01/17:
- cexpsyms.c: don't print warning when removing redundant symbols
with different addresses; seems they can point to plt and executable...
- cexpsegs-powerpc-rtems.c: silenced compiler warnings.
- cexpmod.c: silenced compiler warnings. BUGFIX: cexpSymLkAddrIdx()
returned 'margin' instead of symbol table index.
......
......@@ -227,12 +227,14 @@ const char *old;
for ( fr=1, to=0; fr<stbl->nentries; fr++ ) {
while ( 0 == _cexp_namecomp( &stbl->syms[to], &stbl->syms[fr] ) ) {
#ifdef DEBUG /* There seem to be redundant symbols (plt and executable); don't warn for now */
if ( _cexp_addrcomp( &stbl->syms[to], &stbl->syms[fr] ) ) {
fprintf(stderr,"WARNING: Eliminating redundant symbol '%s' but values differ (%p vs. %p [eliminated])\n",
stbl->syms[to].name,
stbl->syms[to].value.ptv,
stbl->syms[fr].value.ptv);
}
#endif
fr++;
}
stbl->syms[++to] = stbl->syms[fr];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment