Skip to content

Commit

Permalink
build: enable big toc for release builds in AIX
Browse files Browse the repository at this point in the history
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: #7500
PR-URL: #7508
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
gireeshpunathil authored and Fishrock123 committed Jul 6, 2016
1 parent 5bb63e1 commit b829a49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@
'ldflags': [ '-maix64' ],
}],
],
'ldflags': [ '-Wl,-bbigtoc' ],
'ldflags!': [ '-rdynamic' ],
}],
[ 'node_shared=="true"', {
Expand Down
2 changes: 1 addition & 1 deletion node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit b829a49

Please sign in to comment.