1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Changeset 2620 for trunk/ld/ld_symbols.c

Show
Ignore:
Timestamp:
10/24/12 23:17:20 (7 months ago)
Author:
kaiwang27
Message:

Document how to track import symbols.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ld/ld_symbols.c

    r2619 r2620  
    454454        struct ld_symbol *__lsb; 
    455455 
     456        /* 
     457         * If a defined DSO symbol is resolved by another symbol, it should 
     458         * be removed from the import symbol table, if it exists there. 
     459         */ 
    456460        if (_lsb->lsb_input != NULL && _lsb->lsb_input->li_type == LIT_DSO && 
    457461            _lsb->lsb_shndx != SHN_UNDEF) 
    458462                _remove_from_import(ld, _lsb); 
    459463 
     464        /* 
     465         * If some symbol resolved to a defined DSO symbol, it should be 
     466         * added to import symbol table, if it doesn't yet exist there. 
     467         */ 
    460468        if (lsb->lsb_input != NULL && lsb->lsb_input->li_type == LIT_DSO && 
    461469            lsb->lsb_shndx != SHN_UNDEF) {