aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-01-24 20:22:12 +0000
committerIan Lance Taylor <ian@airs.com>1994-01-24 20:22:12 +0000
commit5dad4c97286ccff467bb6c96203056106a19e551 (patch)
tree179a63458ba35acc28fa009010e0cbf93f21f44a /ld/ldmain.c
parentde08b0b153eab06bdc93d5de7705ebd1a081972f (diff)
downloadgdb-5dad4c97286ccff467bb6c96203056106a19e551.zip
gdb-5dad4c97286ccff467bb6c96203056106a19e551.tar.gz
gdb-5dad4c97286ccff467bb6c96203056106a19e551.tar.bz2
* ldmain.c (reloc_overflow): Added name, reloc_name and addend
arguments.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index eab00dc..8ac7eeb 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -99,8 +99,9 @@ static boolean warning_callback PARAMS ((struct bfd_link_info *,
static boolean undefined_symbol PARAMS ((struct bfd_link_info *,
const char *, bfd *,
asection *, bfd_vma));
-static boolean reloc_overflow PARAMS ((struct bfd_link_info *, bfd *,
- asection *, bfd_vma));
+static boolean reloc_overflow PARAMS ((struct bfd_link_info *, const char *,
+ const char *, bfd_vma,
+ bfd *, asection *, bfd_vma));
static boolean reloc_dangerous PARAMS ((struct bfd_link_info *, const char *,
bfd *, asection *, bfd_vma));
static boolean unattached_reloc PARAMS ((struct bfd_link_info *,
@@ -547,6 +548,9 @@ add_archive_element (info, abfd, name)
if (write_map)
info_msg ("%s needed due to %T\n", abfd->filename, name);
+ if (trace_files || trace_file_tries)
+ info_msg ("%I\n", input);
+
return true;
}
@@ -754,13 +758,20 @@ undefined_symbol (info, name, abfd, section, address)
/*ARGSUSED*/
static boolean
-reloc_overflow (info, abfd, section, address)
+reloc_overflow (info, name, reloc_name, addend, abfd, section, address)
struct bfd_link_info *info;
+ const char *name;
+ const char *reloc_name;
+ bfd_vma addend;
bfd *abfd;
asection *section;
bfd_vma address;
{
- einfo ("%X%C: relocation truncated to fit\n", abfd, section, address);
+ einfo ("%X%C: relocation truncated to fit: %s %T", abfd, section,
+ address, reloc_name, name);
+ if (addend != 0)
+ einfo ("+%v", addend);
+ einfo ("\n");
return true;
}