From: Dmitry Kovalenko Date: Thu, 23 Mar 2017 09:08:44 +0000 (+0300) Subject: elf_parser: fix big file opening X-Git-Tag: accepted/tizen/tv/20170324.024352 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Faccepted%2Ftizen%2Ftv%2F20170324.024352;p=platform%2Fcore%2Fsystem%2Fswap-probe.git elf_parser: fix big file opening Change-Id: Id1c1f678a6e2ff5b97a1a1d1867f5832ad29f694 --- diff --git a/Makefile b/Makefile index 2027295..33e04d2 100644 --- a/Makefile +++ b/Makefile @@ -195,7 +195,7 @@ $(ASM_OBJ): $(ASM_SRC) $(CC) $(ASMFLAG) -c $^ -o $@ $(PARSE_ELF_LIB_OBJ): $(PARSE_ELF_LIB_SRC) - $(CC) -fPIC -c $^ -o $@ + $(CC) -D_FILE_OFFSET_BITS=64 -fPIC -c $^ -o $@ $(PARSE_ELF_BIN_OBJ): $(PARSE_ELF_BIN_SRC) $(CC) -c $^ -o $@ diff --git a/elf_parsing/prebuild/libparserelf_x86.so b/elf_parsing/prebuild/libparserelf_x86.so index 6284167..97f491a 100755 Binary files a/elf_parsing/prebuild/libparserelf_x86.so and b/elf_parsing/prebuild/libparserelf_x86.so differ diff --git a/elf_parsing/prebuild/libparserelf_x86_64.so b/elf_parsing/prebuild/libparserelf_x86_64.so index 2c97352..62ce9b3 100755 Binary files a/elf_parsing/prebuild/libparserelf_x86_64.so and b/elf_parsing/prebuild/libparserelf_x86_64.so differ