Subversion Repositories HelenOS

Rev

Rev 2965 | Rev 2972 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2965 Rev 2971
Line 169... Line 169...
169
        printf("Object type %d is not supported\n", header->e_type);
169
        printf("Object type %d is not supported\n", header->e_type);
170
        return EE_UNSUPPORTED;
170
        return EE_UNSUPPORTED;
171
    }
171
    }
172
 
172
 
173
    /* The run-time dynamic linker is loaded with a bias */
173
    /* The run-time dynamic linker is loaded with a bias */
-
 
174
    printf("Object type: %d\n", header->e_type);
174
    if (header->e_type == ET_DYN)
175
    if (header->e_type == ET_DYN)
175
        elf->bias = RTLD_BIAS;
176
        elf->bias = RTLD_BIAS;
176
    else
177
    else
177
        elf->bias = 0;
178
        elf->bias = 0;
178
 
179
 
-
 
180
    printf("Bias set to 0x%d\n", elf->bias);
-
 
181
 
179
    printf("parse segments\n");
182
    printf("parse segments\n");
180
 
183
 
181
    /* Walk through all segment headers and process them. */
184
    /* Walk through all segment headers and process them. */
182
    for (i = 0; i < header->e_phnum; i++) {
185
    for (i = 0; i < header->e_phnum; i++) {
183
        elf_segment_header_t segment_hdr;
186
        elf_segment_header_t segment_hdr;