OLD | NEW |
1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 ['target_arch=="mipsel"', { | 208 ['target_arch=="mipsel"', { |
209 # The mips toolchain currently has problems with stack-protector. | 209 # The mips toolchain currently has problems with stack-protector. |
210 'cflags!': [ | 210 'cflags!': [ |
211 '-fstack-protector', | 211 '-fstack-protector', |
212 '-U__linux__' | 212 '-U__linux__' |
213 ], | 213 ], |
214 'cflags': [ | 214 'cflags': [ |
215 '-fno-stack-protector', | 215 '-fno-stack-protector', |
216 ], | 216 ], |
217 }], | 217 }], |
| 218 ['target_arch=="arm64" or target_arch=="x64"', { |
| 219 # TODO(ulan): Enable PIE for other architectures (crbug.com/373219). |
| 220 'cflags': [ |
| 221 '-fPIE', |
| 222 ], |
| 223 'ldflags': [ |
| 224 '-pie', |
| 225 ], |
| 226 }], |
218 ], | 227 ], |
219 'target_conditions': [ | 228 'target_conditions': [ |
220 ['_type=="executable"', { | 229 ['_type=="executable"', { |
221 'conditions': [ | 230 'conditions': [ |
222 ['target_arch=="arm64"', { | 231 ['target_arch=="arm64"', { |
223 'ldflags': [ | 232 'ldflags': [ |
224 '-Wl,-dynamic-linker,/system/bin/linker64', | 233 '-Wl,-dynamic-linker,/system/bin/linker64', |
225 ], | 234 ], |
226 }, { | 235 }, { |
227 'ldflags': [ | 236 'ldflags': [ |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 'ldflags!': [ | 278 'ldflags!': [ |
270 '-Wl,-z,noexecstack', | 279 '-Wl,-z,noexecstack', |
271 '-Wl,--gc-sections', | 280 '-Wl,--gc-sections', |
272 '-Wl,-O1', | 281 '-Wl,-O1', |
273 '-Wl,--as-needed', | 282 '-Wl,--as-needed', |
274 ], | 283 ], |
275 }], | 284 }], |
276 ], # target_conditions | 285 ], # target_conditions |
277 }, # target_defaults | 286 }, # target_defaults |
278 } | 287 } |
OLD | NEW |