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

Unified Diff: chrome/nacl.gypi

Issue 8588046: nacl_helper_bootstrap: Reserve correct address space size for ARM, none for x86-64 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/nacl/nacl_helper_bootstrap_linux.x » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/nacl.gypi
diff --git a/chrome/nacl.gypi b/chrome/nacl.gypi
index 986abdcb23880ae5421154a87dbade9728c12aab..0fcab27c55f5018bd043ec46d91f51769938b07f 100644
--- a/chrome/nacl.gypi
+++ b/chrome/nacl.gypi
@@ -127,6 +127,27 @@
],
}],
['OS=="linux" and coverage==0', {
+ 'conditions': [
+ ['target_arch=="x64"', {
+ 'variables': {
+ # No extra reservation.
+ 'nacl_reserve_top': [],
+ }
+ }],
+ ['target_arch=="ia32"', {
+ 'variables': {
+ # 1G address space.
+ 'nacl_reserve_top': ['--defsym', 'RESERVE_TOP=0x40000000'],
+ }
+ }],
+ ['target_arch=="arm"', {
+ 'variables': {
+ # 1G address space, plus 4K guard area above because
+ # immediate offsets are 12 bits.
+ 'nacl_reserve_top': ['--defsym', 'RESERVE_TOP=0x40001000'],
Mark Seaborn 2011/11/18 00:31:03 As an aside, do we cross-check this? If I lower e
+ }
+ }],
+ ],
'targets': [
{
'target_name': 'nacl_helper',
@@ -274,8 +295,8 @@
['target_arch=="arm"', {
'variables': {
'linker_emulation': 'armelf_linux_eabi',
- # ARM requires linking against libc due to ABI dependencies on
- # memset
+ # ARM requires linking against libc due to ABI
+ # dependencies on memset.
'bootstrap_extra_lib' : "${SYSROOT}/usr/lib/libc.a",
}
}],
@@ -283,13 +304,16 @@
'action': ['../tools/ld_bfd/ld',
'-m', '<(linker_emulation)',
'--build-id',
- # This program is (almost) entirely standalone. It
- # has its own startup code, so no crt1.o for it. It is
- # statically linked, and on x86 it does not use
- # libc at all. However, on ARM it needs a few (safe)
- # things from libc.
+ # This program is (almost) entirely
+ # standalone. It has its own startup code, so
+ # no crt1.o for it. It is statically linked,
+ # and on x86 it does not use libc at all.
+ # However, on ARM it needs a few (safe) things
+ # from libc.
'-static',
- # Link with custom linker script for special layout.
+ # Link with custom linker script for special
+ # layout. The script uses the symbol RESERVE_TOP.
+ '<@(nacl_reserve_top)',
'--script=<(linker_script)',
'-o', '<@(_outputs)',
# On x86-64, the default page size with some
« no previous file with comments | « no previous file | chrome/nacl/nacl_helper_bootstrap_linux.x » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698