commit: http://blackfin.uclinux.org/git/?p=linux-kernel;a=commitdiff;h=2711af8014e901e0c8ad26744076fd90011a3c0c branch: http://blackfin.uclinux.org/git/?p=linux-kernel;a=shortlog;h=refs/heads/trunk
Signed-off-by: Steven Miao <[email protected]> --- fs/binfmt_flat.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c index dd913db..f855c9d 100644 --- a/fs/binfmt_flat.c +++ b/fs/binfmt_flat.c @@ -446,16 +446,16 @@ static int load_flat_file(struct linux_binprm * bprm, hdr = ((struct flat_hdr *) bprm->buf); /* exec-header */ inode = file_inode(bprm->file); - relocs = ntohl(hdr->reloc_count); - flags = ntohl(hdr->flags); - rev = ntohl(hdr->rev); - full_data = data_len + relocs * sizeof(unsigned long); - text_len = ntohl(hdr->data_start); data_len = ntohl(hdr->data_end) - ntohl(hdr->data_start); bss_len = ntohl(hdr->bss_end) - ntohl(hdr->data_end); stack_len = ntohl(hdr->stack_size); + relocs = ntohl(hdr->reloc_count); + flags = ntohl(hdr->flags); + rev = ntohl(hdr->rev); + full_data = data_len + relocs * sizeof(unsigned long); + if (flags & FLAT_FLAG_L1STK) { #ifdef CONFIG_SMP flags &= ~FLAT_FLAG_L1STK;
_______________________________________________ Linux-kernel-commits mailing list [email protected] https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits
