1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

Added largefile support under Linux.

committer: mfx <mfx> 1034637175 +0000
This commit is contained in:
Markus F.X.J. Oberhumer 2002-10-14 23:12:55 +00:00
parent bd191af41b
commit 1ba9ce283b
2 changed files with 2 additions and 1 deletions

View File

@ -195,6 +195,7 @@ LDFLAGS += $(LDLIBDIRS)
ifeq ($(target),linux)
override arch := $(shell uname -m | sed -e 's/^i[3456789]86$$/i386/')
DEFS += '-DUPX_CONFIG_H="config_h/linux.h"'
DEFS += -D_FILE_OFFSET_BITS=64
LDLIBS += -lmcheck
ifeq ($(arch),i386)
CC += -march=i386 -mcpu=i586

View File

@ -472,7 +472,7 @@ void Packer::handleStub(InputFile *fif, OutputFile *fo, long size)
void Packer::checkOverlay(unsigned overlay)
{
assert((off_t)overlay >= 0);
assert((int)overlay >= 0);
assert((off_t)overlay < file_size);
if (overlay == 0)
return;