Subversion Repositories Kolibri OS

Rev

Rev 5199 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5199 Rev 6324
Line 1... Line 1...
1
/* ldmisc.c
1
/* ldmisc.c
2
   Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-
 
3
   2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010, 2011, 2012, 2013
-
 
4
   Free Software Foundation, Inc.
2
   Copyright (C) 1991-2015 Free Software Foundation, Inc.
5
   Written by Steve Chamberlain of Cygnus Support.
3
   Written by Steve Chamberlain of Cygnus Support.
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 35... Line 33...
35
#include 
33
#include 
36
#include "ldlex.h"
34
#include "ldlex.h"
37
#include "ldmain.h"
35
#include "ldmain.h"
38
#include "ldfile.h"
36
#include "ldfile.h"
39
#include "elf-bfd.h"
37
#include "elf-bfd.h"
-
 
38
#include "coff-bfd.h"
Line 40... Line 39...
40
 
39
 
41
/*
40
/*
42
 %% literal %
41
 %% literal %
43
 %A section name from a section
42
 %A section name from a section
Line 482... Line 481...
482
  if (config.map_file != NULL)
481
  if (config.map_file != NULL)
483
    {
482
    {
484
      va_list arg;
483
      va_list arg;
Line 485... Line 484...
485
 
484
 
-
 
485
      va_start (arg, fmt);
-
 
486
      if (fmt[0] == '%' && fmt[1] == '!' && fmt[2] == 0)
-
 
487
	{
-
 
488
	  /* Stash info about --as-needed shared libraries.  Print
-
 
489
	     later so they don't appear intermingled with archive
-
 
490
	     library info.  */
-
 
491
	  struct asneeded_minfo *m = xmalloc (sizeof *m);
-
 
492
 
-
 
493
	  m->next = NULL;
-
 
494
	  m->soname = va_arg (arg, const char *);
-
 
495
	  m->ref = va_arg (arg, bfd *);
-
 
496
	  m->name = va_arg (arg, const char *);
-
 
497
	  *asneeded_list_tail = m;
-
 
498
	  asneeded_list_tail = &m->next;
-
 
499
	}
486
      va_start (arg, fmt);
500
      else
487
      vfinfo (config.map_file, fmt, arg, FALSE);
501
      vfinfo (config.map_file, fmt, arg, FALSE);
488
      va_end (arg);
502
      va_end (arg);
489
    }
503
    }
Line 518... Line 532...
518
 
532
 
519
void
533
void
520
ld_abort (const char *file, int line, const char *fn)
534
ld_abort (const char *file, int line, const char *fn)
521
{
535
{
522
  if (fn != NULL)
536
  if (fn != NULL)
523
    einfo (_("%P: internal error: aborting at %s line %d in %s\n"),
537
    einfo (_("%P: internal error: aborting at %s:%d in %s\n"),
524
	   file, line, fn);
538
	   file, line, fn);
525
  else
539
  else
526
    einfo (_("%P: internal error: aborting at %s line %d\n"),
540
    einfo (_("%P: internal error: aborting at %s:%d\n"),
527
	   file, line);
541
	   file, line);
528
  einfo (_("%P%F: please report this bug\n"));
542
  einfo (_("%P%F: please report this bug\n"));
529
  xexit (1);
543
  xexit (1);