lto test fails with -fno-inline in CFLAGS
[binutils-gdb.git] / bfd / mach-o-target.c
index 54d9641c023ad04f4f815c52fa261cba05ed39df..5211486696b6de2234f20e1c67e60c2951bae7c6 100644 (file)
@@ -1,5 +1,5 @@
 /* Mach-O support for BFD.
-   Copyright (C) 1999-2018 Free Software Foundation, Inc.
+   Copyright (C) 1999-2023 Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
 
@@ -24,7 +24,6 @@
 #ifndef MACH_O_TARGET_COMMON_DEFINED
 #define MACH_O_TARGET_COMMON_DEFINED
 
-#define bfd_mach_o_bfd_free_cached_info                      _bfd_generic_bfd_free_cached_info
 #define bfd_mach_o_get_section_contents_in_window     _bfd_generic_get_section_contents_in_window
 #define bfd_mach_o_bfd_print_private_bfd_data        bfd_mach_o_bfd_print_private_bfd_data
 #define bfd_mach_o_bfd_is_target_special_symbol              _bfd_bool_bfd_asymbol_false
@@ -52,6 +51,7 @@
 #define bfd_mach_o_bfd_lookup_section_flags          bfd_generic_lookup_section_flags
 #define bfd_mach_o_bfd_merge_sections                bfd_generic_merge_sections
 #define bfd_mach_o_bfd_is_group_section                      bfd_generic_is_group_section
+#define bfd_mach_o_bfd_group_name                    bfd_generic_group_name
 #define bfd_mach_o_bfd_discard_group                 bfd_generic_discard_group
 #define bfd_mach_o_section_already_linked            _bfd_generic_section_already_linked
 #define bfd_mach_o_bfd_define_common_symbol          bfd_generic_define_common_symbol
@@ -135,6 +135,7 @@ const bfd_target TARGET_NAME =
   ' ',                         /* ar_pad_char.  */
   16,                          /* ar_max_namelen.  */
   TARGET_PRIORITY,     /* match priority.  */
+  TARGET_KEEP_UNUSED_SECTION_SYMBOLS, /* keep unused section symbols.  */
 
 #if TARGET_BIG_ENDIAN
   bfd_getb64, bfd_getb_signed_64, bfd_putb64,