Ignore:
Timestamp:
May 3, 2003, 11:45:43 PM (22 years ago)
Author:
bird
Message:

Applied the original 2.11.2 diff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/binutils/bfd/aoutx.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r85 r86  
    270270
    271271#define TABLE_SIZE(TABLE)       (sizeof (TABLE)/sizeof (TABLE[0]))
     272
     273#ifndef IS_STAB
     274#  define IS_STAB(flags) ((flags) & N_STAB)
     275#endif
    272276
    273277reloc_howto_type *
     
    13761380  flagword visible;
    13771381
    1378   if ((cache_ptr->type & N_STAB) != 0
     1382  if (IS_STAB(cache_ptr->type)
    13791383      || cache_ptr->type == N_FN)
    13801384    {
     
    16151619      cache_ptr->symbol.flags = BSF_WEAK;
    16161620      break;
     1621
     1622#ifdef EMX
     1623    case N_IMP1 | N_EXT:
     1624      cache_ptr->symbol.section = bfd_abs_section_ptr;
     1625      cache_ptr->symbol.flags = BSF_EMX_IMPORT1;
     1626      break;
     1627
     1628    case N_IMP2 | N_EXT:
     1629      cache_ptr->symbol.section = bfd_abs_section_ptr;
     1630      cache_ptr->symbol.flags = BSF_EMX_IMPORT2;
     1631      break;
     1632#endif /* EMX */
    16171633    }
    16181634
     
    31493165         below.  */
    31503166      if (((type & N_EXT) == 0
    3151            || (type & N_STAB) != 0
     3167           || IS_STAB(type)
    31523168           || type == N_FN)
    31533169          && type != N_WEAKA
     
    31803196          || type == (N_BSS | N_EXT)
    31813197          || type == (N_ABS | N_EXT)
    3182           || type == (N_INDR | N_EXT))
     3198          || type == (N_INDR | N_EXT)
     3199#if defined (EMX)
     3200          || type == (N_IMP1 | N_EXT)
     3201#endif
     3202         )
    31833203        {
    31843204          /* This object file defines this symbol.  We must link it
     
    33533373
    33543374      /* Ignore debugging symbols.  */
    3355       if ((type & N_STAB) != 0)
     3375      if (IS_STAB(type))
    33563376        continue;
    33573377
     
    34733493          flags = BSF_WEAK;
    34743494          break;
     3495#ifdef EMX
     3496        case N_IMP1 | N_EXT:
     3497          section = bfd_abs_section_ptr;
     3498          flags = BSF_EMX_IMPORT1;
     3499          value = -1; /* -1 in *ABS* means external imported symbol */
     3500          break;
     3501        case N_IMP2 | N_EXT:
     3502          section = bfd_abs_section_ptr;
     3503          flags = BSF_EMX_IMPORT2;
     3504          break;
     3505#endif /* EMX */
    34753506        }
    34763507
     
    41894220              break;
    41904221            case strip_debugger:
    4191               if ((type & N_STAB) != 0)
     4222              if (IS_STAB(type))
    41924223                skip = true;
    41934224              break;
     
    42374268              symsec = NULL;
    42384269            }
    4239           else if ((type & N_STAB) != 0)
     4270          else if ((type == (N_IMP1 | N_EXT))
     4271                || (type == (N_IMP2 | N_EXT)))
     4272            symsec = bfd_abs_section_ptr;
     4273          else if (IS_STAB(type))
    42404274            {
    42414275              val = GET_WORD (input_bfd, sym->e_value);
     
    43544388                  break;
    43554389                case discard_l:
    4356                   if ((type & N_STAB) == 0
     4390                  if (!IS_STAB(type)
    43574391                      && bfd_is_local_label_name (input_bfd, name))
    43584392                    skip = true;
     
    48644898              h = sym_hashes[r_index];
    48654899              if (h != (struct aout_link_hash_entry *) NULL
     4900#ifdef EMX
     4901              /* Don't touch imported symbols */
     4902                  && (!bfd_is_abs_section (h->root.u.def.section)
     4903                      || (h->root.u.def.value != -1))
     4904#endif
    48664905                  && (h->root.type == bfd_link_hash_defined
    48674906                      || h->root.type == bfd_link_hash_defweak))
Note: See TracChangeset for help on using the changeset viewer.