aboutsummaryrefslogtreecommitdiff
path: root/bfd/linker.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-09-12 20:31:29 +0000
committerIan Lance Taylor <ian@airs.com>1995-09-12 20:31:29 +0000
commit4ca63811653fda6c8000a1088a27e9cd2f2d9d4f (patch)
tree6b740eb72c3ed4abfe47c674e663f668f3f731c7 /bfd/linker.c
parent20a753dfd53cd47b86dab4bb2ed77b8b6ea7454c (diff)
downloadgdb-4ca63811653fda6c8000a1088a27e9cd2f2d9d4f.zip
gdb-4ca63811653fda6c8000a1088a27e9cd2f2d9d4f.tar.gz
gdb-4ca63811653fda6c8000a1088a27e9cd2f2d9d4f.tar.bz2
* linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
warning callback.
Diffstat (limited to 'bfd/linker.c')
-rw-r--r--bfd/linker.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/linker.c b/bfd/linker.c
index efd1664..340c908 100644
--- a/bfd/linker.c
+++ b/bfd/linker.c
@@ -1753,7 +1753,7 @@ _bfd_generic_link_add_one_symbol (info, abfd, name, flags, section, value,
/* Issue a warning and cycle. */
if (h->u.i.warning != NULL)
{
- if (! (*info->callbacks->warning) (info, h->u.i.warning,
+ if (! (*info->callbacks->warning) (info, h->u.i.warning, name,
abfd, (asection *) NULL,
(bfd_vma) 0))
return false;
@@ -1777,7 +1777,7 @@ _bfd_generic_link_add_one_symbol (info, abfd, name, flags, section, value,
case WARN:
/* Issue a warning. */
- if (! (*info->callbacks->warning) (info, string,
+ if (! (*info->callbacks->warning) (info, string, name,
hash_entry_bfd (h),
(asection *) NULL, (bfd_vma) 0))
return false;
@@ -1791,7 +1791,7 @@ _bfd_generic_link_add_one_symbol (info, abfd, name, flags, section, value,
ensure this. */
if (h->next != NULL || info->hash->undefs_tail == h)
{
- if (! (*info->callbacks->warning) (info, string,
+ if (! (*info->callbacks->warning) (info, string, name,
hash_entry_bfd (h),
(asection *) NULL,
(bfd_vma) 0))