-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make stack non-executable #105
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,8 @@ package webrtc | |
|
||
/* | ||
#cgo CXXFLAGS: -std=c++0x | ||
#cgo LDFLAGS: -L${SRCDIR}/lib | ||
#cgo linux LDFLAGS: -L${SRCDIR}/lib -z noexecstack | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about "android"? |
||
#cgo darwin LDFLAGS: -L${SRCDIR}/lib | ||
#cgo android pkg-config: webrtc-android-armeabi-v7a.pc | ||
#cgo linux,arm pkg-config: webrtc-linux-arm.pc | ||
#cgo linux,386 pkg-config: webrtc-linux-386.pc | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,8 @@ package webrtc | |
|
||
/* | ||
#cgo CXXFLAGS: -std=c++0x | ||
#cgo LDFLAGS: -L${SRCDIR}/lib | ||
#cgo linux LDFLAGS: -L${SRCDIR}/lib -z noexecstack | ||
#cgo darwin LDFLAGS: -L${SRCDIR}/lib | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not necessarily opposed to these changes but do these flags need to be set at the source level? Would something like this,
work here? https://gitweb.torproject.org/builders/tor-browser-build.git/tree/projects/snowflake/build#n46 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, even simpler, you can set It worries me that the stack is executable by default, but this is probably something that should be fixed with the go linker rather than here. The advantage to doing everything in environment variables or with I'm definitely good if the decision is to not merge this pull request. |
||
#cgo android pkg-config: webrtc-android-armeabi-v7a.pc | ||
#cgo linux,arm pkg-config: webrtc-linux-arm.pc | ||
#cgo linux,386 pkg-config: webrtc-linux-386.pc | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this doing anything now?