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
/* ldctor.c -- constructor support routines
1
/* ldctor.c -- constructor support routines
2
   Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
-
 
3
   2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2011
-
 
4
   Free Software Foundation, Inc.
2
   Copyright (C) 1991-2015 Free Software Foundation, Inc.
5
   By Steve Chamberlain 
3
   By Steve Chamberlain 
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 274... Line 272...
274
	 generating relocatable output, we generate relocs instead of
272
	 generating relocatable output, we generate relocs instead of
275
	 addresses.  */
273
	 addresses.  */
276
      howto = bfd_reloc_type_lookup (link_info.output_bfd, p->reloc);
274
      howto = bfd_reloc_type_lookup (link_info.output_bfd, p->reloc);
277
      if (howto == NULL)
275
      if (howto == NULL)
278
	{
276
	{
279
	  if (link_info.relocatable)
277
	  if (bfd_link_relocatable (&link_info))
280
	    {
278
	    {
281
	      einfo (_("%P%X: %s does not support reloc %s for set %s\n"),
279
	      einfo (_("%P%X: %s does not support reloc %s for set %s\n"),
282
		     bfd_get_target (link_info.output_bfd),
280
		     bfd_get_target (link_info.output_bfd),
283
		     bfd_get_reloc_code_name (p->reloc),
281
		     bfd_get_reloc_code_name (p->reloc),
284
		     p->h->root.string);
282
		     p->h->root.string);
Line 362... Line 360...
362
 
360
 
363
	  /* Need SEC_KEEP for --gc-sections.  */
361
	  /* Need SEC_KEEP for --gc-sections.  */
364
	  if (! bfd_is_abs_section (e->section))
362
	  if (! bfd_is_abs_section (e->section))
Line 365... Line 363...
365
	    e->section->flags |= SEC_KEEP;
363
	    e->section->flags |= SEC_KEEP;
366
 
364
 
367
	  if (link_info.relocatable)
365
	  if (bfd_link_relocatable (&link_info))
368
	    lang_add_reloc (p->reloc, howto, e->section, e->name,
366
	    lang_add_reloc (p->reloc, howto, e->section, e->name,
369
			    exp_intop (e->value));
367
			    exp_intop (e->value));
370
	  else
368
	  else