Fix build with lld 17

Add `--extern-only` option for `nm` to ignore local symbols
Take the local change from https://android-review.git.corp.google.com/c/platform/external/jetbrains/JetBrainsRuntime/+/2983672

Bug: b/311424182
Change-Id: I35fae62a810b5e53f9aba7a0816b4a4731e5a027
1 file changed
tree: 618ceb65ff4cc095924ad5ca9c79ac4a53dfd7b0
  1. .github/
  2. .jcheck/
  3. bin/
  4. doc/
  5. make/
  6. src/
  7. test/
  8. .gitattributes
  9. .gitignore
  10. .hgtags
  11. ADDITIONAL_LICENSE_INFO
  12. ASSEMBLY_EXCEPTION
  13. configure
  14. CONTRIBUTING.md
  15. LICENSE
  16. Makefile
  17. METADATA
  18. MODULE_LICENSE_GPL
  19. OWNERS
  20. README.md
README.md

Welcome to the JDK!

For build instructions please see the online documentation, or either of these files:

See https://openjdk.java.net/ for more information about the OpenJDK Community and the JDK.