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

Changeset 2729

Show
Ignore:
Timestamp:
12/09/12 16:54:39 (17 months ago)
Author:
kaiwang27
Message:

Add function ld_symbols_ref which retrieve the symbol to which the
provided symbol resolves.

Location:
trunk/ld
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/ld/ld_symbols.c

    r2723 r2729  
    477477} 
    478478 
     479/* 
     480 * Retrieve the resolved symbol. 
     481 */ 
     482struct ld_symbol * 
     483ld_symbols_ref(struct ld_symbol *lsb) 
     484{ 
     485 
     486        while (lsb->lsb_ref != NULL) 
     487                lsb = lsb->lsb_ref; 
     488 
     489        return (lsb); 
     490} 
     491 
    479492static struct ld_symbol * 
    480493_alloc_symbol(struct ld *ld) 
  • trunk/ld/ld_symbols.h

    r2718 r2729  
    9292void    ld_symbols_resolve(struct ld *); 
    9393void    ld_symbols_update(struct ld *); 
     94struct ld_symbol *ld_symbols_ref(struct ld_symbol *);