Back to index

cell-binutils  2.17cvs20070401
Functions | Variables
ldmain.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void add_ysym (const char *)
void add_wrap (const char *)
void add_keepsyms_file (const char *)

Variables

char * program_name
const char * ld_sysroot
char * ld_canon_sysroot
int ld_canon_sysroot_len
bfdoutput_bfd
char * default_target
bfd_boolean trace_files
bfd_boolean trace_file_tries
bfd_boolean version_printed
bfd_boolean whole_archive
bfd_boolean as_needed
bfd_boolean add_needed
bfd_boolean demangling
int g_switch_value
const char * output_filename
int overflow_cutoff_limit

Function Documentation

void add_keepsyms_file ( const char *  )

Definition at line 873 of file ldmain.c.

{
  FILE *file;
  char *buf;
  size_t bufsize;
  int c;

  if (link_info.strip == strip_some)
    einfo (_("%X%P: error: duplicate retain-symbols-file\n"));

  file = fopen (filename, "r");
  if (file == NULL)
    {
      bfd_set_error (bfd_error_system_call);
      einfo ("%X%P: %s: %E\n", filename);
      return;
    }

  link_info.keep_hash = xmalloc (sizeof (struct bfd_hash_table));
  if (!bfd_hash_table_init (link_info.keep_hash, bfd_hash_newfunc,
                         sizeof (struct bfd_hash_entry)))
    einfo (_("%P%F: bfd_hash_table_init failed: %E\n"));

  bufsize = 100;
  buf = xmalloc (bufsize);

  c = getc (file);
  while (c != EOF)
    {
      while (ISSPACE (c))
       c = getc (file);

      if (c != EOF)
       {
         size_t len = 0;

         while (! ISSPACE (c) && c != EOF)
           {
             buf[len] = c;
             ++len;
             if (len >= bufsize)
              {
                bufsize *= 2;
                buf = xrealloc (buf, bufsize);
              }
             c = getc (file);
           }

         buf[len] = '\0';

         if (bfd_hash_lookup (link_info.keep_hash, buf, TRUE, TRUE) == NULL)
           einfo (_("%P%F: bfd_hash_lookup for insertion failed: %E\n"));
       }
    }

  if (link_info.strip != strip_none)
    einfo (_("%P: `-retain-symbols-file' overrides `-s' and `-S'\n"));

  free (buf);
  link_info.strip = strip_some;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void add_wrap ( const char *  )

Definition at line 854 of file ldmain.c.

{
  if (link_info.wrap_hash == NULL)
    {
      link_info.wrap_hash = xmalloc (sizeof (struct bfd_hash_table));
      if (!bfd_hash_table_init_n (link_info.wrap_hash,
                              bfd_hash_newfunc,
                              sizeof (struct bfd_hash_entry),
                              61))
       einfo (_("%P%F: bfd_hash_table_init failed: %E\n"));
    }

  if (bfd_hash_lookup (link_info.wrap_hash, name, TRUE, TRUE) == NULL)
    einfo (_("%P%F: bfd_hash_lookup failed: %E\n"));
}

Here is the call graph for this function:

Here is the caller graph for this function:

void add_ysym ( const char *  )

Definition at line 835 of file ldmain.c.

{
  if (link_info.notice_hash == NULL)
    {
      link_info.notice_hash = xmalloc (sizeof (struct bfd_hash_table));
      if (!bfd_hash_table_init_n (link_info.notice_hash,
                              bfd_hash_newfunc,
                              sizeof (struct bfd_hash_entry),
                              61))
       einfo (_("%P%F: bfd_hash_table_init failed: %E\n"));
    }

  if (bfd_hash_lookup (link_info.notice_hash, name, TRUE, TRUE) == NULL)
    einfo (_("%P%F: bfd_hash_lookup failed: %E\n"));
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 102 of file ldmain.c.

Definition at line 98 of file ldmain.c.

Definition at line 64 of file ldmain.c.

Definition at line 105 of file ldmain.c.

Definition at line 81 of file ldmain.c.

Definition at line 74 of file ldmain.c.

Definition at line 75 of file ldmain.c.

Definition at line 71 of file ldmain.c.

Definition at line 78 of file ldmain.c.

Definition at line 65 of file ldmain.c.

Definition at line 1474 of file ldmain.c.

char* program_name

Definition at line 49 of file bucomm.c.

Definition at line 87 of file ldmain.c.

Definition at line 84 of file ldmain.c.

Definition at line 91 of file ldmain.c.

Definition at line 94 of file ldmain.c.