Skip to content

Commit e307cd4

Browse files
committed
merge
2 parents 25f8b9e + e8ba14a commit e307cd4

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

src/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ exeext ?= .out
4949
libext ?= .a
5050
objext ?= .o
5151

52-
upx_SOURCES := $(wildcard $(srcdir)/*.cpp)
52+
upx_SOURCES := $(sort $(wildcard $(srcdir)/*.cpp))
5353
upx_OBJECTS := $(notdir $(upx_SOURCES:.cpp=$(objext)))
5454

5555
# we need UCL and zlib - you can set envvar UPX_UCLDIR
@@ -77,7 +77,7 @@ upx$(exeext): $(upx_OBJECTS) $(upx_DEPENDENCIES)
7777
%.o : %.cpp | .depend
7878
$(strip $(CXX) $(call e,CPPFLAGS) $(call e,CXXFLAGS) -o $@ -c $<)
7979

80-
.depend: $(wildcard $(srcdir)/*.cpp $(srcdir)/*.h) $(MAKEFILE_LIST)
80+
.depend: $(sort $(wildcard $(srcdir)/*.cpp $(srcdir)/*.h)) $(MAKEFILE_LIST)
8181
@rm -f $@
8282
ifeq ($(USE_GNUC),1)
8383
@echo "Updating $@"

src/filter/ppcbxx.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ static int F(Filter *f)
108108
f->calls = calls;
109109
f->noncalls = noncalls;
110110
f->lastcall = lastcall;
111+
ACC_UNUSED(lastnoncall);
111112

112113
#if 0 || defined(TESTING)
113114
printf("\ncalls=%d noncalls=%d text_size=%x calltrickoffset=%x\n",

src/p_lx_elf.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,11 +828,13 @@ PackLinuxElf64amd::defineSymbols(Filter const *)
828828
adrc = page_mask & (~page_mask + adrc); // round up to page boundary
829829

830830
//linker->defineSymbol("ADRX", adrx); // compressed input for eXpansion
831+
ACC_UNUSED(adrx);
831832

832833
// For actual moving, we need the true count, which depends on sz_pack2
833834
// and is not yet known. So the runtime stub detects "no move"
834835
// if adrm==adrc, and otherwise uses actual sz_pack2 to compute cntc.
835836
//linker->defineSymbol("CNTC", cntc); // count for copy
837+
ACC_UNUSED(cntc);
836838

837839
linker->defineSymbol("LENU", lenu); // len for unmap
838840
linker->defineSymbol("ADRC", adrc); // addr for copy
@@ -2109,6 +2111,7 @@ void PackLinuxElf32::ARM_defineSymbols(Filter const * /*ft*/)
21092111
linker->defineSymbol("LENF", 4+ linker->getSymbolOffset("end_decompress"));
21102112

21112113
linker->defineSymbol("ADRM", adrm); // addr for map
2114+
ACC_UNUSED(adrx);
21122115
}
21132116

21142117
void PackLinuxElf32armLe::defineSymbols(Filter const *ft)
@@ -2183,6 +2186,7 @@ void PackLinuxElf32mipseb::defineSymbols(Filter const * /*ft*/)
21832186
// and is not yet known. So the runtime stub detects "no move"
21842187
// if adrm==adrc, and otherwise uses actual sz_pack2 to compute cntc.
21852188
//linker->defineSymbol("CNTC", cntc); // count for copy
2189+
ACC_UNUSED(cntc);
21862190

21872191
linker->defineSymbol("ADRC", adrc); // addr for copy
21882192
linker->defineSymbol("LENU", lenu); // len for unmap
@@ -2255,6 +2259,7 @@ void PackLinuxElf32mipsel::defineSymbols(Filter const * /*ft*/)
22552259
// and is not yet known. So the runtime stub detects "no move"
22562260
// if adrm==adrc, and otherwise uses actual sz_pack2 to compute cntc.
22572261
//linker->defineSymbol("CNTC", cntc); // count for copy
2262+
ACC_UNUSED(cntc);
22582263

22592264
linker->defineSymbol("ADRC", adrc); // addr for copy
22602265
linker->defineSymbol("LENU", lenu); // len for unmap

src/stub/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,9 @@ endif
12611261
ifndef EXTRA_MAKEFILES
12621262
EXTRA_MAKEFILES :=
12631263
##ifneq ($(filter extra-%,$(MAKECMDGOALS)),)
1264-
EXTRA_MAKEFILES += $(wildcard src/arch/*/Makefile.extra src/arch/*/*/Makefile.extra src/arch/*/*/*/Makefile.extra)
1264+
EXTRA_MAKEFILES += $(sort $(wildcard src/arch/*/Makefile.extra))
1265+
EXTRA_MAKEFILES += $(sort $(wildcard src/arch/*/*/Makefile.extra))
1266+
EXTRA_MAKEFILES += $(sort $(wildcard src/arch/*/*/*/Makefile.extra))
12651267
####EXTRA_MAKEFILES += $(shell find src/arch -name Makefile.extra 2>/dev/null)
12661268
##endif
12671269
endif

0 commit comments

Comments
 (0)