OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'includes': [ | 6 'includes': [ |
7 '../../../../ppapi/ppapi_nacl_test_common.gypi', | 7 '../../../../ppapi/ppapi_nacl_test_common.gypi', |
8 ], | 8 ], |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1145 # such thing might be adding them in, and those options wind up | 1145 # such thing might be adding them in, and those options wind up |
1146 # coming after the -fno-stack-protector we added above. | 1146 # coming after the -fno-stack-protector we added above. |
1147 '-fstack-protector', | 1147 '-fstack-protector', |
1148 '-fstack-protector-all', | 1148 '-fstack-protector-all', |
1149 '-fprofile-generate', | 1149 '-fprofile-generate', |
1150 '-finstrument-functions', | 1150 '-finstrument-functions', |
1151 ], | 1151 ], |
1152 'ldflags': [ | 1152 'ldflags': [ |
1153 '-nostdlib', | 1153 '-nostdlib', |
1154 '-shared', | 1154 '-shared', |
1155 # This binary cannot relocate itself, so we should have no | |
1156 # undefined references left. | |
1157 '-Wl,--no-undefined', | |
1158 # Clang emits .data.rel.ro.local for local struct values | |
1159 # with initializers, and let the linker emit a few | |
1160 # relocation info. We work around this issue by not using | |
1161 # GNU_RELRO. | |
1162 '-Wl,-z,norelro', | |
Mark Seaborn
2014/07/10 17:17:45
I don't think adding "norelro" works.
For example
hamaji
2014/07/11 05:16:48
True. I might have been testing this in a wrong wa
| |
1155 ], | 1163 ], |
1156 'ldflags!': [ | 1164 'ldflags!': [ |
1157 # Explicitly remove the -pthread flag to avoid a link time warning. | 1165 # Explicitly remove the -pthread flag to avoid a link time warning. |
1158 '-pthread', | 1166 '-pthread', |
1159 ], | 1167 ], |
1160 'defines': [ | 1168 'defines': [ |
1161 # The code depends on NaCl's headers. This is a macro for them. | 1169 # The code depends on NaCl's headers. This is a macro for them. |
1162 'NACL_LINUX=1', | 1170 'NACL_LINUX=1', |
1163 ], | 1171 ], |
1164 # For native_client/src/include/... | 1172 # For native_client/src/include/... |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1208 'files': [ | 1216 'files': [ |
1209 '>@(test_files)', | 1217 '>@(test_files)', |
1210 ], | 1218 ], |
1211 }, | 1219 }, |
1212 ], | 1220 ], |
1213 }, | 1221 }, |
1214 ], | 1222 ], |
1215 }], | 1223 }], |
1216 ], | 1224 ], |
1217 } | 1225 } |
OLD | NEW |