diff options
author | Ian Lance Taylor <iant@google.com> | 2006-11-06 22:46:08 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2006-11-06 22:46:08 +0000 |
commit | f6ce93d6e999d1a0c450c5e71c5b3468e6217f0a (patch) | |
tree | 945ecd482d35d1c2a590645ef3d5f41fb83dcc4b /gold/target-reloc.h | |
parent | 8d9455b422d98d97f090923445aa2680e6882f20 (diff) | |
download | gdb-f6ce93d6e999d1a0c450c5e71c5b3468e6217f0a.zip gdb-f6ce93d6e999d1a0c450c5e71c5b3468e6217f0a.tar.gz gdb-f6ce93d6e999d1a0c450c5e71c5b3468e6217f0a.tar.bz2 |
Split Object into Dynobj and Relobj, incorporate elfcpp swapping changes.
Diffstat (limited to 'gold/target-reloc.h')
-rw-r--r-- | gold/target-reloc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gold/target-reloc.h b/gold/target-reloc.h index ebaa827..7069278 100644 --- a/gold/target-reloc.h +++ b/gold/target-reloc.h @@ -44,7 +44,7 @@ scan_relocs( Symbol_table* symtab, Layout* layout, Target_type* target, - Sized_object<size, big_endian>* object, + Sized_relobj<size, big_endian>* object, const unsigned char* prelocs, size_t reloc_count, size_t local_count, @@ -193,6 +193,9 @@ relocate_section( sym->name()); // gold_exit(false); } + + if (sym != NULL && sym->has_warning()) + relinfo->symtab->issue_warning(sym, relinfo->location(i, offset)); } } |