summaryrefslogtreecommitdiffstats
path: root/ppapi/native_client/native_client.gyp
diff options
context:
space:
mode:
authorsbc@chromium.org <sbc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-05 07:19:47 +0000
committersbc@chromium.org <sbc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-05 07:19:47 +0000
commit03b3212e50ec5b937cdd20f02d875d050ce958d0 (patch)
tree55d0b92fc823003da59b44205e4c2eee2452e388 /ppapi/native_client/native_client.gyp
parent7ff35caa401a18e0bd24f423953c07db915921c1 (diff)
downloadchromium_src-03b3212e50ec5b937cdd20f02d875d050ce958d0.zip
chromium_src-03b3212e50ec5b937cdd20f02d875d050ce958d0.tar.gz
chromium_src-03b3212e50ec5b937cdd20f02d875d050ce958d0.tar.bz2
Update NaCl ARM build flags now that gcc used as default compiler.
Second attempt at this change. The required a native_client change: https://codereview.chromium.org/12499011/ Thus this change also brings in NaCl changes from 11084:11126 inclusive. BUG=196627 TEST=run nacl brower tests one ARM linux Review URL: https://chromiumcodereview.appspot.com/13652003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192521 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/native_client/native_client.gyp')
-rw-r--r--ppapi/native_client/native_client.gyp62
1 files changed, 16 insertions, 46 deletions
diff --git a/ppapi/native_client/native_client.gyp b/ppapi/native_client/native_client.gyp
index 825d120..f655631 100644
--- a/ppapi/native_client/native_client.gyp
+++ b/ppapi/native_client/native_client.gyp
@@ -114,54 +114,24 @@
'-lgio',
'-Wl,--end-group',
'-lm',
+ '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)',
+ '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)',
],
- # See http://code.google.com/p/nativeclient/issues/detail?id=2691.
- # The PNaCl linker (gold) does not implement the "-Ttext-segment"
- # option. However, with the linker for x86, the "-Ttext" option
- # does not affect the executable's base address.
- # TODO(olonho): simplify flags handling and avoid duplication
- # with NaCl logic.
'conditions': [
- ['target_arch!="arm"',
- {
- 'link_flags': [
- '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)',
- '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)',
- ]
- }, { # target_arch == "arm"
- # TODO(mcgrathr): This knowledge really belongs in
- # native_client/src/untrusted/irt/irt.gyp instead of here.
- # But that builds libirt_browser.a as bitcode, so a native
- # object does not fit happily there.
- 'sources': [
- '../../native_client/src/untrusted/irt/aeabi_read_tp.S',
- ],
- 'link_flags': [
- '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)',
- '-Wl,-Ttext=<(NACL_IRT_TEXT_START)',
- '--pnacl-allow-native',
- '-arch', 'arm',
- '-Wt,-mtls-use-call',
- '-Wl,--pnacl-irt-link',
- ],
- },
- ],
- # untrusted.gypi and build_nexe.py currently build
- # both x86-32 and x86-64 whenever target_arch is some
- # flavor of x86. However, on non-windows platforms
- # we only need one architecture.
- ['OS!="win" and target_arch=="ia32"',
- {
- 'enable_x86_64': 0
- }
- ],
- ['OS!="win" and target_arch=="x64"',
- {
- 'enable_x86_32': 0
- }
- ]
- ],
- 'sources': [
+ # untrusted.gypi and build_nexe.py currently build
+ # both x86-32 and x86-64 whenever target_arch is some
+ # flavor of x86. However, on non-windows platforms
+ # we only need one architecture.
+ ['OS!="win" and target_arch=="ia32"',
+ {
+ 'enable_x86_64': 0
+ }
+ ],
+ ['OS!="win" and target_arch=="x64"',
+ {
+ 'enable_x86_32': 0
+ }
+ ]
],
'extra_args': [
'--strip-debug',