Subversion Repositories Kolibri OS

Rev

Rev 5199 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5199 Rev 6324
Line 1... Line 1...
1
/* ldwrite.c -- write out the linked file
1
/* ldwrite.c -- write out the linked file
2
   Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2002,
-
 
3
   2003, 2004, 2005, 2006, 2007, 2008, 2010, 2012
-
 
4
   Free Software Foundation, Inc.
2
   Copyright (C) 1991-2015 Free Software Foundation, Inc.
5
   Written by Steve Chamberlain sac@cygnus.com
3
   Written by Steve Chamberlain sac@cygnus.com
Line 6... Line 4...
6
 
4
 
Line 7... Line 5...
7
   This file is part of the GNU Binutils.
5
   This file is part of the GNU Binutils.
Line 488... Line 486...
488
 
486
 
489
	      if (info->strip == strip_none
487
	      if (info->strip == strip_none
490
		  || info->strip == strip_some)
488
		  || info->strip == strip_some)
Line 491... Line 489...
491
		thislines = sec->lineno_count;
489
		thislines = sec->lineno_count;
492
 
490
 
Line 493... Line 491...
493
	      if (info->relocatable)
491
	      if (bfd_link_relocatable (info))
Line 494... Line 492...
494
		thisrelocs = sec->reloc_count;
492
		thisrelocs = sec->reloc_count;
495
 
493
 
496
	      thissize = sec->size;
494
	      thissize = sec->size;
497
 
495
 
498
	    }
496
	    }
Line 499... Line 497...
499
	  else if (info->relocatable
497
	  else if (bfd_link_relocatable (info)
Line 572... Line 570...
572
ldwrite (void)
570
ldwrite (void)
573
{
571
{
574
  /* Reset error indicator, which can typically something like invalid
572
  /* Reset error indicator, which can typically something like invalid
575
     format from opening up the .o files.  */
573
     format from opening up the .o files.  */
576
  bfd_set_error (bfd_error_no_error);
574
  bfd_set_error (bfd_error_no_error);
-
 
575
  lang_clear_os_map ();
577
  lang_for_each_statement (build_link_order);
576
  lang_for_each_statement (build_link_order);
Line 578... Line 577...
578
 
577
 
579
  if (config.split_by_reloc != (unsigned) -1
578
  if (config.split_by_reloc != (unsigned) -1
580
      || config.split_by_file != (bfd_size_type) -1)
579
      || config.split_by_file != (bfd_size_type) -1)