elf_parser: fix big file opening 04/120604/3 accepted/tizen/common/20170323.154719 accepted/tizen/ivi/20170324.024427 accepted/tizen/mobile/20170324.024339 accepted/tizen/tv/20170324.024352 accepted/tizen/unified/20170324.024442 accepted/tizen/wearable/20170324.024408 submit/tizen/20170323.125308
authorDmitry Kovalenko <d.kovalenko@samsung.com>
Thu, 23 Mar 2017 09:08:44 +0000 (12:08 +0300)
committerDmitry Kovalenko <d.kovalenko@samsung.com>
Thu, 23 Mar 2017 12:24:03 +0000 (15:24 +0300)
Change-Id: Id1c1f678a6e2ff5b97a1a1d1867f5832ad29f694

Makefile
elf_parsing/prebuild/libparserelf_x86.so
elf_parsing/prebuild/libparserelf_x86_64.so

index 2027295..33e04d2 100644 (file)
--- 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 $@
index 6284167..97f491a 100755 (executable)
Binary files a/elf_parsing/prebuild/libparserelf_x86.so and b/elf_parsing/prebuild/libparserelf_x86.so differ
index 2c97352..62ce9b3 100755 (executable)
Binary files a/elf_parsing/prebuild/libparserelf_x86_64.so and b/elf_parsing/prebuild/libparserelf_x86_64.so differ