Skip to content

Commit

Permalink
build: use -Wl,--no-keep-memory
Browse files Browse the repository at this point in the history
  • Loading branch information
jengelh committed Apr 9, 2020
1 parent 8c913d0 commit 0596d47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions chrome/BUILD.gn
Expand Up @@ -285,6 +285,7 @@ if (!is_android && !is_mac) {
]

ldflags = []
ldflags += [ "-Wl,--no-keep-memory" ]

# Chrome OS debug builds for arm need to pass --long-plt to the linker.
# See https://bugs.chromium.org/p/chromium/issues/detail?id=583532
Expand Down
2 changes: 1 addition & 1 deletion sandbox/linux/BUILD.gn
Expand Up @@ -314,7 +314,7 @@ if (is_linux) {
"-Wno-sign-compare",
]

ldflags = [ "-pie" ]
ldflags = [ "-pie", "-Wl,--no-keep-memory" ]
}
}

Expand Down

0 comments on commit 0596d47

Please sign in to comment.