aboutsummaryrefslogtreecommitdiff
path: root/gold/target-reloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'gold/target-reloc.h')
-rw-r--r--gold/target-reloc.h5
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));
}
}