Fix up warnings from gcc -Wall:
authorIan Lance Taylor <ian@airs.com>
Mon, 25 Oct 1993 21:22:33 +0000 (21:22 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 25 Oct 1993 21:22:33 +0000 (21:22 +0000)
* coffgen.c (coff_print_symbol): Use %lx and cast n_value to
unsigned long.  Use %ld for tagndx.  Use %lx for offset + vma and
cast it to unsigned long.
* ecoff.c (ecoff_emit_aggregate): Use %ld.
(ecoff_print_symbol): Use %ld, and cast indx and sym_base to long.
* coffcode.h (dummy_reloc16_estimate): Specify return type.

bfd/ChangeLog
bfd/coffcode.h

index ef4a435fb1935d4d78a91d22e7028c9a92d24e9a..92ea13baff5c8c524627dae25d6ea9bd9023371d 100644 (file)
@@ -1,5 +1,13 @@
 Mon Oct 25 16:05:23 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
 
+       Fix up warnings from gcc -Wall:
+       * coffgen.c (coff_print_symbol): Use %lx and cast n_value to
+       unsigned long.  Use %ld for tagndx.  Use %lx for offset + vma and
+       cast it to unsigned long.
+       * ecoff.c (ecoff_emit_aggregate): Use %ld.      
+       (ecoff_print_symbol): Use %ld, and cast indx and sym_base to long.
+       * coffcode.h (dummy_reloc16_estimate): Specify return type.
+
        * libbfd.c (bfd_write): If not everything is written out, set
        bfd_error to system_call_error.  If the return value is
        non-negative, set errno to ENOSPC (if ENOSPC is defined).
index 298f8c82926cc9d7d4403d525ad40af0b9f85c42..5ddd37ca904fb8b131f47abfac67d05060ef9846 100644 (file)
@@ -437,9 +437,11 @@ DEFUN(styp_to_sec_flags, (abfd, hdr),
   }
   else if (styp_flags & STYP_INFO) 
     {
-      /* Assume that any informational section is primarily for debugging
-        and therefore a prime candidate for stripping. */
-      sec_flags |= SEC_DEBUGGING;
+      /* This should be marked as SEC_DEBUGGING, but that can't be
+        done until we make sure that strip can still work.  strip
+        will probably have to preserve the same number of sections to
+        ensure that the section vma matches the section file
+        position.  */
     }
   else
   {
@@ -1261,10 +1263,6 @@ DEFUN(coff_compute_section_file_positions,(abfd),
    sofar += AOUTSZ;
 
   sofar += abfd->section_count * SCNHSZ;
-#ifdef USE_DISCARDED_SECTIONS_COUNT
-  /* Count any sections that were removed, so overall size doesn't change. */
-  sofar += discarded_sections_count * SCNHSZ;
-#endif
   for (current = abfd->sections;
        current != (asection *)NULL;
        current = current->next) {
@@ -2288,14 +2286,14 @@ bfd *abfd;
 #ifndef coff_reloc16_estimate
 #define coff_reloc16_estimate dummy_reloc16_estimate
 
-static dummy_reloc16_estimate(input_section, symbols, reloc, shrink)
+static int
+dummy_reloc16_estimate(input_section, symbols, reloc, shrink)
      asection *input_section;
      asymbol **symbols;
      arelent *reloc;
-     int shrink;
+     unsigned int shrink;
 {
-  abort();
-  
+  abort ();
 }
 
 #endif
This page took 0.048912 seconds and 4 git commands to generate.