diff --git a/common.gypi b/common.gypi index a892c2d6e3..646db0d7bb 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 b2a5a1e4a0..4309748fca 100644 --- a/node.gyp +++ b/node.gyp @@ -819,7 +819,7 @@ 'common.gypi', ], - 'ldflags': ['-Wl,-bbigtoc,-bE:<(PRODUCT_DIR)/node.exp'], + 'ldflags': ['-Wl,-bE:<(PRODUCT_DIR)/node.exp'], }, { 'target_name': 'node_exp',