* ldmain.c (reloc_overflow): Added name, reloc_name and addend
authorIan Lance Taylor <ian@airs.com>
Mon, 24 Jan 1994 20:22:12 +0000 (20:22 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 24 Jan 1994 20:22:12 +0000 (20:22 +0000)
arguments.

ld/ChangeLog
ld/ldmain.c

index 5cd1d1712ade816491fbc7b23392f6f6f39b1a00..ad06226a7efbf058c1cd55ea7690f8dc710d6bb8 100644 (file)
@@ -1,5 +1,8 @@
 Mon Jan 24 12:56:37 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
 
+       * ldmain.c (reloc_overflow): Added name, reloc_name and addend
+       arguments.
+
        * ldlang.c (lookup_name): Set BFD GP size to -G argument value
        after opening BFD.
 
index eab00dca0b5da77d66437a1ce93cd55f8eb76baf..8ac7eeb49ae93ff4eddb4a14b499d5e54cdf12da 100644 (file)
@@ -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;
 }
 
This page took 0.030692 seconds and 4 git commands to generate.