Skip to content

Commit d856e34

Browse files
Makefile: executor: build without jump tables
When compiling SYZOS into the executor binary, the compiler often attempts to emit a jump table, putting it into the data section of the executor. SYZOS is unable to access that data and crashes. To work around this, build the executor with -fno-jump-tables. This may in theory impact the execution speed. If that happens, we'll need to compile SYZOS as a separate translation unit.
1 parent 77908e5 commit d856e34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ else
133133
mkdir -p ./bin/$(TARGETOS)_$(TARGETARCH)
134134
$(CXX) -o ./bin/$(TARGETOS)_$(TARGETARCH)/syz-executor$(EXE) executor/executor.cc \
135135
$(ADDCXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -DGOOS_$(TARGETOS)=1 -DGOARCH_$(TARGETARCH)=1 \
136-
-DHOSTGOOS_$(HOSTOS)=1 -DGIT_REVISION=\"$(REV)\"
136+
-DHOSTGOOS_$(HOSTOS)=1 -DGIT_REVISION=\"$(REV)\" -fno-jump-tables
137137
endif
138138
endif
139139
endif

0 commit comments

Comments
 (0)