This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] missed snippets to LD octets vs bytes patch


This is a small code remainder that was accidentally omitted from the
previous octets vs bytes patch for the linker.  This has already been
applied.


Index: ldlang.c
===================================================================
RCS file: /cvs/src/src/ld/ldlang.c,v
retrieving revision 1.21
diff -d -c -p -r1.21 ldlang.c
*** ldlang.c	2000/02/04 19:49:21	1.21
--- ldlang.c	2000/02/09 14:41:03
*************** lang_check_section_addresses ()
*** 2672,2679 ****
  	     overlapping VMAs but they must have distinct LMAs.  */
  	  s_start  = bfd_section_lma (output_bfd, s);
  	  os_start = bfd_section_lma (output_bfd, os);
! 	  s_end    = s_start  + bfd_section_size (output_bfd, s) - 1;
! 	  os_end   = os_start + bfd_section_size (output_bfd, os) - 1;
  	  
  	  /* Look for an overlap.  */
  	  if ((s_end < os_start) || (s_start > os_end))
--- 2672,2679 ----
  	     overlapping VMAs but they must have distinct LMAs.  */
  	  s_start  = bfd_section_lma (output_bfd, s);
  	  os_start = bfd_section_lma (output_bfd, os);
! 	  s_end    = s_start  + bfd_section_size (output_bfd, s) / opb - 1;
! 	  os_end   = os_start + bfd_section_size (output_bfd, os) / opb - 1;
  	  
  	  /* Look for an overlap.  */
  	  if ((s_end < os_start) || (s_start > os_end))
*************** lang_size_sections (s, output_section_st
*** 2906,2911 ****
--- 2906,2913 ----
  
  	    switch (s->data_statement.type)
  	      {
+               default:
+                 abort();
  	      case QUAD:
  	      case SQUAD:
  		size = QUAD_SIZE;
*************** lang_do_assignments (s, output_section_s
*** 3150,3155 ****
--- 3152,3159 ----
              int size;
              switch (s->data_statement.type)
                {
+               default:
+                 abort();
                case QUAD:
                case SQUAD:
                  size = QUAD_SIZE;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]