From 7450b93f9784d4df625f9729a20a61a3d8923854 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 3 Feb 2020 20:00:47 -0800 Subject: readelf: support large ELF64 files on LP32 systems. --- toys/pending/readelf.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'toys/pending') diff --git a/toys/pending/readelf.c b/toys/pending/readelf.c index a9554265..acb1ed0f 100644 --- a/toys/pending/readelf.c +++ b/toys/pending/readelf.c @@ -43,14 +43,14 @@ GLOBALS( // Section header. struct sh { int type, link, info; - long flags, addr, offset, size, addralign, entsize; + long long flags, addr, offset, size, addralign, entsize; char *name; }; // Program header. struct ph { int type, flags; - long offset, vaddr, paddr, filesz, memsz, align; + long long offset, vaddr, paddr, filesz, memsz, align; }; static void get_sh(int i, struct sh *s) @@ -396,7 +396,7 @@ static void scan_elf() char sh_flags[12] = {}, *p = sh_flags; for (j=0; j<12; j++) if (s.flags&(1<