Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/gas/subsegs.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    11/* subsegs.c - subsegments -
    22   Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
    3    1999, 2000
     3   1999, 2000, 2002
    44   Free Software Foundation, Inc.
    55
     
    378378  }
    379379#else
    380   as_bad (_("Attempt to switch to nonexistent segment \"%s\""), segname);
     380  as_bad (_("attempt to switch to nonexistent segment \"%s\""), segname);
    381381  return now_seg;
    382382#endif
     
    430430    {
    431431      /* Check whether output_section is set first because secptr may
    432         be bfd_abs_section_ptr.  */
     432        be bfd_abs_section_ptr.  */
    433433      if (secptr->output_section != secptr)
    434434        secptr->output_section = secptr;
     
    530530#endif
    531531
    532   if (! EMIT_SECTION_SYMBOLS
    533 #ifdef BFD_ASSEMBLER
    534       || symbol_table_frozen
    535 #endif
    536       )
     532  if (! EMIT_SECTION_SYMBOLS || symbol_table_frozen)
    537533    {
    538534      /* Here we know it won't be going into the symbol table.  */
    539       s = symbol_create (sec->name, sec, 0, &zero_address_frag);
     535      s = symbol_create (sec->symbol->name, sec, 0, &zero_address_frag);
    540536    }
    541537  else
    542538    {
    543       s = symbol_find_base (sec->name, 0);
     539      s = symbol_find_base (sec->symbol->name, 0);
    544540      if (s == NULL)
    545         s = symbol_new (sec->name, sec, 0, &zero_address_frag);
     541        s = symbol_new (sec->symbol->name, sec, 0, &zero_address_frag);
    546542      else
    547543        {
     
    559555  if (obj_sec_sym_ok_for_reloc (sec))
    560556    symbol_set_bfdsym (s, sec->symbol);
     557  else
     558    symbol_get_bfdsym (s)->flags |= BSF_SECTION_SYM;
    561559
    562560  seginfo->sym = s;
     
    591589  const char * const *p;
    592590
    593   if (sec == data_section || sec == bss_section)
     591  if (sec == data_section || sec == bss_section || sec == absolute_section)
    594592    return 0;
    595593
     
    656654        }
    657655      fprintf (file, "\n");
    658       fprintf (file, "\t%p %-10s\t%10d frags\n", frchp,
     656      fprintf (file, "\t%p %-10s\t%10d frags\n", (void *) frchp,
    659657               segment_name (frchp->frch_seg), count);
    660658    }
Note: See TracChangeset for help on using the changeset viewer.