URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 1165 to Rev 1166
- ↔ Reverse comparison
Rev 1165 → Rev 1166
/trunk/uclinux/uClinux-2.0.x/fs/binfmt_elf.c
593,15 → 593,19
real setiona hader info field. */ |
|
rel_nb = sec[rel_indx].len / sizeof(struct elf32_rel); |
retval = do_relocate(elf_spnt->sh_info, rel_nb, rel_ptr, sym_ptr, sec); |
/* Check if section to relocate was allocated first */ |
if ((elf_shdata + elf_spnt->sh_info)->sh_flags & SHF_ALLOC) { |
retval = do_relocate(elf_spnt->sh_info, rel_nb, rel_ptr, sym_ptr, sec); |
|
if (retval < 0) { |
for(j = 0; j < elf_ex.e_shnum; j++) |
if(sec[j].len) |
do_munmap(sec[j].pm_add, sec[j].len); |
do_munmap(code_start, code_len + code_len + bss_len + stack_len); |
kfree(elf_shdata); |
return retval; |
if (retval < 0) { |
for(j = 0; j < elf_ex.e_shnum; j++) |
if(sec[j].len) |
do_munmap(sec[j].pm_add, sec[j].len); |
do_munmap(code_start, code_len + code_len + bss_len + stack_len); |
kfree(elf_shdata); |
return retval; |
} |
|
} |
|
/* Now unmap rel section */ |