]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
h8300: Handle .gnu_object_only section
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 27 Oct 2020 13:39:59 +0000 (06:39 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 13 Jan 2025 21:22:04 +0000 (05:22 +0800)
PR ld/12291
PR ld/12430
PR ld/13298
* config/tc-h8300.c (h8300_elf_section): Handle .gnu_object_only
section.

gas/config/tc-h8300.c

index f8e5406416611dc53d9987e9a6bb90ab29fc494f..105461da92bf82a15e0e18c076a959cff6eead9d 100644 (file)
@@ -146,8 +146,10 @@ pint (int arg ATTRIBUTE_UNUSED)
 static void
 h8300_elf_section (int push)
 {
-  static const char * known_data_sections [] = { ".rodata", ".tdata", ".tbss" };
-  static const char * known_data_prefixes [] = { ".debug", ".zdebug", ".gnu.warning" };
+  static const char * known_data_sections []
+    = { ".rodata", ".tdata", ".tbss", ".gnu_object_only" };
+  static const char * known_data_prefixes []
+    = { ".debug", ".zdebug", ".gnu.warning" };
   char * saved_ilp = input_line_pointer;
   const char * name;