Skip to content

Commit

Permalink
add --gdb-index to linker
Browse files Browse the repository at this point in the history
gold linker has a flag to automatically generate gdb-index section
inside shared libraries when linking.

Webkit single-file compile/linking time:

16.31s without gdb-index
16.11s with gdb-index

gdb startup time

~51s without gdb-index
~19s with gdb-index

BUG=

Review URL: https://codereview.chromium.org/1680943002

Cr-Commit-Position: refs/heads/master@{#378600}
  • Loading branch information
atotic authored and Commit bot committed Mar 1, 2016
1 parent 171ad18 commit f68b7c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -4608,6 +4608,7 @@
# crashing on the bots: crbug.com/161942.
# '-Wl,--threads',
# '-Wl,--thread-count=4',
'-Wl,--gdb-index',
],
'conditions': [
# TODO(thestig): Enable this for disabled cases.
Expand Down
1 change: 1 addition & 0 deletions build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ config("compiler") {
# crashing on the bots: crbug.com/161942.
#"-Wl,--threads",
#"-Wl,--thread-count=4",
"-Wl,--gdb-index",
]

if (!using_sanitizer && !(is_android && use_order_profiling)) {
Expand Down

0 comments on commit f68b7c0

Please sign in to comment.