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

Changeset 2773

Show
Ignore:
Timestamp:
12/12/12 04:13:21 (16 months ago)
Author:
kaiwang27
Message:

Consider the linker is performing a "dynamic linking" if it creates a
shared library or position independent executable, or if it creates a
normal executable that requires shared libraries.

Location:
trunk/ld
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/ld/ld_dynamic.c

    r2770 r2773  
    6161                return; 
    6262 
     63        ld->ld_dynamic_link = 1; 
     64 
    6365        /* Create .interp section. */ 
    6466        _create_interp(ld, lo); 
  • trunk/ld/ld_options.c

    r2733 r2773  
    408408                ld->ld_exec = 0; 
    409409                ld->ld_pie = 1; 
     410                ld->ld_dynamic_link = 1; 
    410411                break; 
    411412        case KEY_SHARED: 
    412413                ld->ld_exec = 0; 
    413414                ld->ld_dso = 1; 
     415                ld->ld_dynamic_link = 1; 
    414416                break; 
    415417        case KEY_STATIC: 
  • trunk/ld/ld_reloc.c

    r2771 r2773  
    301301        assert(li != NULL); 
    302302 
    303         for (i = 0; (size_t) i < li->li_shnum; i++) { 
     303        for (i = 1; (size_t) i < li->li_shnum; i++) { 
    304304                is = &li->li_is[i]; 
    305305