diff options
author | shashishekhar@chromium.org <shashishekhar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-03 04:32:49 +0000 |
---|---|---|
committer | shashishekhar@chromium.org <shashishekhar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-03 04:32:49 +0000 |
commit | 933d072fa51a1601ee8b57b8ae71d8b5ba3ca9f2 (patch) | |
tree | 7d58dba0a86b3da1ceb2060ec300594aff692c41 /sandbox | |
parent | 71b1f1137f981ecb8e4770e281308cb8af0b2ab1 (diff) | |
download | chromium_src-933d072fa51a1601ee8b57b8ae71d8b5ba3ca9f2.zip chromium_src-933d072fa51a1601ee8b57b8ae71d8b5ba3ca9f2.tar.gz chromium_src-933d072fa51a1601ee8b57b8ae71d8b5ba3ca9f2.tar.bz2 |
Add compiler flags that prevent text relocations.
Text relocations are a minor security risk. Add compiler flags
that prevent them from reappearing in Android binary.
All existing occurences have been removed after
http://crrev.com/17714003.
TEST=Compile.
BUG=b/8061013
Review URL: https://chromiumcodereview.appspot.com/17820002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209885 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/linux/sandbox_linux.gypi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sandbox/linux/sandbox_linux.gypi b/sandbox/linux/sandbox_linux.gypi index 8dc97ce..29639f8 100644 --- a/sandbox/linux/sandbox_linux.gypi +++ b/sandbox/linux/sandbox_linux.gypi @@ -76,6 +76,11 @@ 'dependencies': [ '../testing/android/native_test.gyp:native_test_native_code', ], + 'ldflags!': [ + # Remove warnings about text relocations, to prevent build + # failure. + '-Wl,--warn-shared-textrel' + ], }], ], }, |