Re: [Patch 18/21] Generate the data sections for ELF Core

From: Cong Wang
Date: Wed Dec 15 2010 - 21:14:51 EST


ä 2010å12æ15æ 20:46, Suzuki K. Poulose åé:
On Wed, 15 Dec 2010 15:19:54 +0800
Cong Wang<amwang@xxxxxxxxxx> wrote:

ä 2010å12æ14æ 18:22, Suzuki K. Poulose åé:
...
+
+ off_t offset = *fpos - elf_hdr->e_shoff;

Are you sure it is 'off_t' not 'loff_t'?


You are right. I will change it
+ size_t shdrsz = sizeof(struct elf_shdr) - offset;
+

If you use loff_t, then this line needs to be changed too.
size_t could be shorter than loff_t.

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/