Subversion Repositories HelenOS-historic

Rev

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

Rev 1424 Rev 1425
Line 160... Line 160...
160
 */
160
 */
161
int load_segment(elf_segment_header_t *entry, elf_header_t *elf, as_t *as)
161
int load_segment(elf_segment_header_t *entry, elf_header_t *elf, as_t *as)
162
{
162
{
163
    as_area_t *a;
163
    as_area_t *a;
164
    int flags = 0;
164
    int flags = 0;
165
    mem_backend_data_t backend_data = { .d1 = (__native) elf, .d2 = (__native) entry };
165
    mem_backend_data_t backend_data;
-
 
166
   
-
 
167
    backend_data.elf = elf;
-
 
168
    backend_data.segment = entry;
166
 
169
 
167
    if (entry->p_align > 1) {
170
    if (entry->p_align > 1) {
168
        if ((entry->p_offset % entry->p_align) != (entry->p_vaddr % entry->p_align)) {
171
        if ((entry->p_offset % entry->p_align) != (entry->p_vaddr % entry->p_align)) {
169
            return EE_INVALID;
172
            return EE_INVALID;
170
        }
173
        }