-
-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,24 @@ | ||
# Created by .ignore support plugin (hsz.mobi) | ||
### Go template | ||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
*.txt | ||
|
||
# Test binary, built with `go test -c` | ||
*.test | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
|
||
# Dependency directories (remove the comment below to include it) | ||
# vendor/ | ||
|
||
.idea | ||
|
||
# Builds | ||
build/ | ||
sgn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM ubuntu:18.04 | ||
RUN apt-get update && apt-get -y install wget git cmake build-essential libcapstone-dev gcc-multilib g++-multilib python3 time | ||
WORKDIR /root/ | ||
RUN git clone https://github.com/EgeBalci/keystone | ||
RUN mkdir keystone/build | ||
WORKDIR /root/keystone/build | ||
RUN ../make-share.sh | ||
RUN cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DLLVM_TARGETS_TO_BUILD="AArch64;X86" -G "Unix Makefiles" .. | ||
RUN make -j8 | ||
#RUN ../make-lib.sh | ||
#RUN cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DLLVM_TARGETS_TO_BUILD="AArch64, X86" -G "Unix Makefiles" .. | ||
#RUN make -j8 | ||
RUN wget https://golang.org/dl/go1.14.6.linux-amd64.tar.gz | ||
RUN tar -C /usr/local -xzf go1.14.6.linux-amd64.tar.gz | ||
ENV PATH=$PATH:/usr/local/go/bin | ||
RUN make install | ||
RUN ldconfig | ||
ENV GOPATH=/root | ||
RUN go get -v -u github.com/egebalci/sgn | ||
ENTRYPOINT ["/root/bin/sgn"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
normal: | ||
go build -ldflags="-s -w" -o sgn | ||
go build -ldflags="-s -w" -trimpath -o sgn | ||
386: | ||
CGO_ENABLED=1 GOARCH=386 go build -ldflags="-s -w" -trimpath -o sgn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters