Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stunserver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Stunserver
Commits
e16f5629
Commit
e16f5629
authored
Apr 06, 2020
by
John Selbie
Committed by
GitHub
Apr 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First attempt at ASLR support on Cygwin (#31)
Co-authored-by:
John Selbie
<
john@selbie.com
>
parent
644d0fb2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
client/Makefile
client/Makefile
+1
-1
common.inc
common.inc
+7
-0
server/Makefile
server/Makefile
+1
-1
testcode/Makefile
testcode/Makefile
+1
-1
No files found.
client/Makefile
View file @
e16f5629
...
...
@@ -15,6 +15,6 @@ clean:
rm
-f
$(PROJECT_OBJS)
$(PROJECT_TARGET)
$(PROJECT_TARGET)
:
$(PROJECT_OBJS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(SOCKET_LIBS)
$(CRYPTO_LIBS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(SOCKET_LIBS)
$(CRYPTO_LIBS)
$(ASLR_FLAGS)
common.inc
View file @
e16f5629
...
...
@@ -17,6 +17,8 @@ CRYPTO_LIBS := -lcrypto
#SOLARIS HACK
UNAME
:=
$
(
shell
uname
-
s
)
UNAMEOS
:=
$
(
shell
uname
-
o
)
ifeq
(
$
(
UNAME
),
SunOS
)
SOCKET_LIBS
:=
-
lsocket
-
lnsl
endif
...
...
@@ -26,6 +28,11 @@ ifeq ($(UNAME),Darwin)
CRYPTO_LIBS
:=
endif
#Cygwin hack for ASLR
ifeq
(
$
(
UNAMEOS
),
Cygwin
)
ASLR_FLAGS
:=
-
Xlinker
--
dynamicbase
endif
.
PHONY
:
all
clean
debug
%.
hpp
.
gch
:
%.
hpp
...
...
server/Makefile
View file @
e16f5629
...
...
@@ -14,6 +14,6 @@ clean:
rm
-f
$(PROJECT_OBJS)
$(PROJECT_TARGET)
$(PROJECT_TARGET)
:
$(PROJECT_OBJS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(SOCKET_LIBS)
$(CRYPTO_LIBS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(SOCKET_LIBS)
$(CRYPTO_LIBS)
$(ASLR_FLAGS)
testcode/Makefile
View file @
e16f5629
...
...
@@ -14,7 +14,7 @@ clean:
rm
-f
$(PROJECT_OBJS)
$(PROJECT_TARGET)
$(PROJECT_TARGET)
:
$(PROJECT_OBJS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(SOCKET_LIBS)
$(CRYPTO_LIBS)
$(LINK.cpp)
-o
$@
$^
$(LIB_PATH)
$(LIBS)
$(SOCKET_LIBS)
$(CRYPTO_LIBS)
$(ASLR_FLAGS)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment