shithub: dav1d

Download patch

ref: ebc8e4d9fb942e7479ecf41fe17e361286e1af29
parent: 725f37684ddf51c9e8e35dbce856ce9ab164cf17
author: Nico Weber <thakis@chromium.org>
date: Thu Jul 9 21:38:10 EDT 2020

Hide symbols names when building for mac/arm64

This matches the `.hidden` already used for ELF outputs.

This is needed for Chromium's mac/arm64 build. Chromium has a build step
that verifies that Chromium Framework only exports a small, fixed set of symbols.
The dav1d symbols showed up unexpectedly. This fixes that.

--- a/src/arm/asm.S
+++ b/src/arm/asm.S
@@ -94,6 +94,8 @@
 #ifdef __ELF__
         .type   EXTERN\name, %function
         .hidden EXTERN\name
+#elif defined(__MACH__)
+        .private_extern EXTERN\name
 #endif
 #if HAVE_AS_FUNC
         .func   EXTERN\name