From d80432db76b2e019a9403e5318bf6adc9a027ddb Mon Sep 17 00:00:00 2001 From: Gireesh Punathil Date: Mon, 4 Jul 2016 05:11:10 -0400 Subject: [PATCH] build: enable big toc for release builds in AIX AIX linker has a table of contents with default size 64K The recent code inclusions in V8 brings in lot of new symbols which necessitates to increase this default. Please note that the debug build already has this flag Fixes: https://github.com/nodejs/node/issues/7500 PR-URL: https://github.com/nodejs/node/pull/7508 Reviewed-By: Michael Dawson Reviewed-By: Ben Noordhuis --- common.gypi | 1 + node.gyp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common.gypi b/common.gypi index a892c2d6e38..646db0d7bbb 100644 --- a/common.gypi +++ b/common.gypi @@ -293,6 +293,7 @@ 'ldflags': [ '-maix64' ], }], ], + 'ldflags': [ '-Wl,-bbigtoc' ], 'ldflags!': [ '-rdynamic' ], }], [ 'node_shared=="true"', { diff --git a/node.gyp b/node.gyp index a1d5e54ffbe..8c9f9c69840 100644 --- a/node.gyp +++ b/node.gyp @@ -815,7 +815,7 @@ 'common.gypi', ], - 'ldflags': ['-Wl,-bbigtoc,-bE:<(PRODUCT_DIR)/node.exp'], + 'ldflags': ['-Wl,-bE:<(PRODUCT_DIR)/node.exp'], }, { 'target_name': 'node_exp',