Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6909)

Unified Diff: chrome/test/data/nacl/nacl_test_data.gyp

Issue 381883002: Non-SFI NaCl: Fix browser_tests based on libc_free.c (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: stop using GNU_RELRO Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/test/data/nacl/nonsfi/libc_free.c » ('j') | chrome/test/data/nacl/nonsfi/libc_free.c » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/nacl/nacl_test_data.gyp
diff --git a/chrome/test/data/nacl/nacl_test_data.gyp b/chrome/test/data/nacl/nacl_test_data.gyp
index ea5e198cde0f3a5b8971e9d2d0648e2fef286092..d37a1c4ab650518c63613dacef8d6bb114e5c841 100644
--- a/chrome/test/data/nacl/nacl_test_data.gyp
+++ b/chrome/test/data/nacl/nacl_test_data.gyp
@@ -1152,6 +1152,14 @@
'ldflags': [
'-nostdlib',
'-shared',
+ # This binary cannot relocate itself, so we should have no
+ # undefined references left.
+ '-Wl,--no-undefined',
+ # Clang emits .data.rel.ro.local for local struct values
+ # with initializers, and let the linker emit a few
+ # relocation info. We work around this issue by not using
+ # GNU_RELRO.
+ '-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
],
'ldflags!': [
# Explicitly remove the -pthread flag to avoid a link time warning.
« no previous file with comments | « no previous file | chrome/test/data/nacl/nonsfi/libc_free.c » ('j') | chrome/test/data/nacl/nonsfi/libc_free.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698