[build] Export new/delete symbols on CrOS

Starting 23rd of March, ChromeOS's UI would halt forever and rapidly
leak memory due to an infinite loop in GPU channel code when LLVM's
Scudo Hardened Allocator was enabled. This was eventually bisected to
a libassistant shared object dependency change.

They may seem entirely unrelated, but removing the libassistant
shared object changed how the GPU channel code does its
allocations because of how the ELF symbol exports changed on the
ChromeOS build target. This causes the infinite hang and the leak.

This commit forces these symbols to be exported, and forces the
news used here to match their deletes. This prevents preloads from
changing the Chrome allocator.

Bug: b:280115910
Test: Tested on ChromeOS volteer device with scudo preloaded
Change-Id: I38b34a6c009a99358696b3609c63cbb87d2504ff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4545460
Reviewed-by: Alan Zhao <ayzhao@google.com>
Commit-Queue: Alan Zhao <ayzhao@google.com>
Cr-Commit-Position: refs/heads/main@{#1146255}
NOKEYCHECK=True
GitOrigin-RevId: 4be21247ccae0be364ff9c1e0cb11d4a28ecb194
1 file changed