2e5aa9
This patch disables building of the (effectively empty)
2e5aa9
dl-iterate-phdr.c source file.  Symbols generated by annobin confuse
2e5aa9
the run-check-namespace test because nm -g prints hidden weak symbols
2e5aa9
in DSOs (they are considered external):
2e5aa9
2e5aa9
  ERROR: Extraneous symbols:
2e5aa9
000000000000de51 W dl_iterate_phdr.c.a8d8d212
2e5aa9
  ERROR: Extraneous symbols:
2e5aa9
00000000000120b0 W dl_iterate_phdr.c.a8d8d212
2e5aa9
2e5aa9
This patch is downstream-specific due to annobin.
2e5aa9
2e5aa9
diff -up libunwind-1.8.0/src/Makefile.am.no-dl-iterate-phdr libunwind-1.8.0/src/Makefile.am
2e5aa9
--- libunwind-1.8.0/src/Makefile.am.no-dl-iterate-phdr	2024-01-29 16:30:52.230008417 -0500
2e5aa9
+++ libunwind-1.8.0/src/Makefile.am	2024-01-29 16:31:40.476692706 -0500
2e5aa9
@@ -346,7 +346,7 @@ noinst_LTLIBRARIES += $(libunwind_elf_li
2e5aa9
 libunwind_la_LIBADD += $(libunwind_elf_libs)
2e5aa9
 
2e5aa9
 if OS_LINUX
2e5aa9
- libunwind_la_SOURCES_os               = os-linux.c dl-iterate-phdr.c
2e5aa9
+ libunwind_la_SOURCES_os               = os-linux.c
2e5aa9
  libunwind_la_SOURCES_os_local         = $(libunwind_la_SOURCES_os_linux_local)
2e5aa9
  libunwind_la_SOURCES_aarch64_os       = aarch64/Gos-linux.c
2e5aa9
  libunwind_la_SOURCES_aarch64_os_local = aarch64/Los-linux.c