Changeset 86 for trunk/src/binutils/bfd/aoutx.h
- Timestamp:
- May 3, 2003, 11:45:43 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/binutils/bfd/aoutx.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r85 r86 270 270 271 271 #define TABLE_SIZE(TABLE) (sizeof (TABLE)/sizeof (TABLE[0])) 272 273 #ifndef IS_STAB 274 # define IS_STAB(flags) ((flags) & N_STAB) 275 #endif 272 276 273 277 reloc_howto_type * … … 1376 1380 flagword visible; 1377 1381 1378 if ( (cache_ptr->type & N_STAB) != 01382 if (IS_STAB(cache_ptr->type) 1379 1383 || cache_ptr->type == N_FN) 1380 1384 { … … 1615 1619 cache_ptr->symbol.flags = BSF_WEAK; 1616 1620 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 */ 1617 1633 } 1618 1634 … … 3149 3165 below. */ 3150 3166 if (((type & N_EXT) == 0 3151 || (type & N_STAB) != 03167 || IS_STAB(type) 3152 3168 || type == N_FN) 3153 3169 && type != N_WEAKA … … 3180 3196 || type == (N_BSS | N_EXT) 3181 3197 || 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 ) 3183 3203 { 3184 3204 /* This object file defines this symbol. We must link it … … 3353 3373 3354 3374 /* Ignore debugging symbols. */ 3355 if ( (type & N_STAB) != 0)3375 if (IS_STAB(type)) 3356 3376 continue; 3357 3377 … … 3473 3493 flags = BSF_WEAK; 3474 3494 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 */ 3475 3506 } 3476 3507 … … 4189 4220 break; 4190 4221 case strip_debugger: 4191 if ( (type & N_STAB) != 0)4222 if (IS_STAB(type)) 4192 4223 skip = true; 4193 4224 break; … … 4237 4268 symsec = NULL; 4238 4269 } 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)) 4240 4274 { 4241 4275 val = GET_WORD (input_bfd, sym->e_value); … … 4354 4388 break; 4355 4389 case discard_l: 4356 if ( (type & N_STAB) == 04390 if (!IS_STAB(type) 4357 4391 && bfd_is_local_label_name (input_bfd, name)) 4358 4392 skip = true; … … 4864 4898 h = sym_hashes[r_index]; 4865 4899 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 4866 4905 && (h->root.type == bfd_link_hash_defined 4867 4906 || h->root.type == bfd_link_hash_defweak)) -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.