From 43f6bc80a29fdf326729903e9f323850e9553c69 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 9 Jul 2018 18:58:37 +0000 Subject: Prevent FX_OutOfMemoryTerminate() from being folded by the linker. Copy base::debug::Alias() from Chromium. Use it to prevent ICF from combining FX_OutOfMemoryTerminate() with similar functions. BUG=chromium:860850 Change-Id: Ifccb05c0218f86e44b9bb235847e01383ec36b3f Reviewed-on: https://pdfium-review.googlesource.com/37290 Reviewed-by: dsinclair Commit-Queue: Lei Zhang --- third_party/BUILD.gn | 2 ++ 1 file changed, 2 insertions(+) (limited to 'third_party/BUILD.gn') diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn index 8b212e1622..847229273e 100644 --- a/third_party/BUILD.gn +++ b/third_party/BUILD.gn @@ -554,6 +554,8 @@ jumbo_source_set("pdfium_base") { "base/base_export.h", "base/bits.h", "base/compiler_specific.h", + "base/debug/alias.cc", + "base/debug/alias.h", "base/logging.h", "base/macros.h", "base/numerics/safe_conversions.h", -- cgit v1.2.3