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:
parent
bd191af41b
commit
1ba9ce283b
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user