  	lappend ALWAYS_CFLAGS "additional_flags=-shared-libgcc"
      }
  
-diff --git a/libbacktrace/Makefile.in b/libbacktrace/Makefile.in
-index 08cdd21fb40..8898251161d 100644
---- a/libbacktrace/Makefile.in
-+++ b/libbacktrace/Makefile.in
-@@ -15,7 +15,7 @@
- @SET_MAKE@
- 
- # Makefile.am -- Backtrace Makefile.
--# Copyright (C) 2012-2021 Free Software Foundation, Inc.
-+# Copyright (C) 2012-2022 Free Software Foundation, Inc.
- 
- # Redistribution and use in source and binary forms, with or without
- # modification, are permitted provided that the following conditions are
 diff --git a/libbacktrace/configure b/libbacktrace/configure
 index 17f470a4bec..f1c7242142e 100755
 --- a/libbacktrace/configure

+#endif
+      if (TARGET_MACHO)
+	{
+	  if (DECL_WEAK (decl))
+	    ASM_WEAKEN_DECL (out_file, decl, name, 0);
+	  else
+	    targetm.asm_out.globalize_decl_name (out_file, decl);
+	}
       /* Only emits if the compiler is configured for an assembler that can

 get_gcc_base_ver = @get_gcc_base_ver@
 host = @host@
 host_alias = @host_alias@
@@ -780,7 +784,7 @@ AM_CPPFLAGS = -iquote$(srcdir)/io -I$(srcdir)/$(MULTISRCTOP)../gcc \
 	      -I$(MULTIBUILDTOP)../libbacktrace \
 	      -I../libbacktrace
 
