Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:GA
mozilla-nss.16337
add-relro-linker-option.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File add-relro-linker-option.patch of Package mozilla-nss.16337
# HG changeset patch # Parent 551434b5e83550713a110b3544f8c835cba417cd diff --git a/coreconf/Linux.mk b/coreconf/Linux.mk --- a/coreconf/Linux.mk +++ b/coreconf/Linux.mk @@ -173,16 +173,22 @@ ifneq ($(OS_TARGET),Android) ifeq (2.6,$(firstword $(sort 2.6 $(OS_RELEASE)))) ifndef FREEBL_NO_DEPEND FREEBL_NO_DEPEND = 1 FREEBL_LOWHASH = 1 endif endif endif +# harden DSOs/executables a bit against exploits +ifeq (2.6,$(firstword $(sort 2.6 $(OS_RELEASE)))) +DSO_LDOPTS+=-Wl,-z,relro +LDFLAGS += -Wl,-z,relro +endif + USE_SYSTEM_ZLIB = 1 ZLIB_LIBS = -lz # The -rpath '$$ORIGIN' linker option instructs this library to search for its # dependencies in the same directory where it resides. ifeq ($(BUILD_SUN_PKG), 1) ifeq ($(USE_64), 1) RPATH = -Wl,-rpath,'$$ORIGIN:/opt/sun/private/lib64:/opt/sun/private/lib'
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor