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
/* ldemul.c -- clearing house for ld emulation states
1
/* ldemul.c -- clearing house for ld emulation states
2
   Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-
 
3
   2001, 2002, 2003, 2005, 2007, 2008, 2009, 2010, 2011, 2012
-
 
4
   Free Software Foundation, Inc.
2
   Copyright (C) 1991-2015 Free Software Foundation, Inc.
Line 5... Line 3...
5
 
3
 
Line 6... Line 4...
6
   This file is part of the GNU Binutils.
4
   This file is part of the GNU Binutils.
7
 
5
 
Line 205... Line 203...
205
 
203
 
206
void
204
void
207
after_parse_default (void)
205
after_parse_default (void)
208
{
206
{
209
  if (entry_symbol.name != NULL
207
  if (entry_symbol.name != NULL
210
      && (link_info.executable || entry_from_cmdline))
208
      && (bfd_link_executable (&link_info) || entry_from_cmdline))
211
    {
209
    {
Line 212... Line 210...
212
      bfd_boolean is_vma = FALSE;
210
      bfd_boolean is_vma = FALSE;
213
 
211
 
Line 235... Line 233...
235
}
233
}
Line 236... Line 234...
236
 
234
 
237
void
235
void
238
before_allocation_default (void)
236
before_allocation_default (void)
239
{
237
{
240
  if (!link_info.relocatable)
238
  if (!bfd_link_relocatable (&link_info))
241
    strip_excluded_output_sections ();
239
    strip_excluded_output_sections ();
Line 242... Line 240...
242
}
240
}
243
 
241
 
244
void
242
void
245
finish_default (void)
243
finish_default (void)
246
{
244
{
247
  if (!link_info.relocatable)
245
  if (!bfd_link_relocatable (&link_info))
Line 248... Line 246...
248
    _bfd_fix_excluded_sec_syms (link_info.output_bfd, &link_info);
246
    _bfd_fix_excluded_sec_syms (link_info.output_bfd, &link_info);
249
}
247
}
Line 348... Line 346...
348
{
346
{
349
  if (ld_emulation->new_vers_pattern)
347
  if (ld_emulation->new_vers_pattern)
350
    entry = (*ld_emulation->new_vers_pattern) (entry);
348
    entry = (*ld_emulation->new_vers_pattern) (entry);
351
  return entry;
349
  return entry;
352
}
350
}
-
 
351
 
-
 
352
void
-
 
353
ldemul_extra_map_file_text (bfd *abfd, struct bfd_link_info *info, FILE *mapf)
-
 
354
{
-
 
355
  if (ld_emulation->extra_map_file_text)
-
 
356
    ld_emulation->extra_map_file_text (abfd, info, mapf);
-
 
357
}