]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
m68k: drop .bss override
authorJan Beulich <jbeulich@suse.com>
Fri, 5 Jan 2024 07:06:54 +0000 (08:06 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 5 Jan 2024 07:06:54 +0000 (08:06 +0100)
The comment looks bogus (perhaps simply stale), and there are also no
other precautions against subsections being used on ELF with .bss. It
also doesn't look to be a good idea to override the custom handler that
ELF has (afaict doing so further broke .previous).

gas/config/tc-m68k.c

index d22facf8d82c5e40f48baa145ab09e16e608b0b2..d04aa1edecdbcac278151f69691c748f4c6ebdeb 100644 (file)
@@ -455,7 +455,6 @@ static int reverse_16_bits (int in);
 static int reverse_8_bits (int in);
 static void install_gen_operand (int mode, int val);
 static void install_operand (int mode, int val);
-static void s_bss (int);
 static void s_data1 (int);
 static void s_data2 (int);
 static void s_even (int);
@@ -862,7 +861,6 @@ const pseudo_typeS md_pseudo_table[] =
 {
   {"data1", s_data1, 0},
   {"data2", s_data2, 0},
-  {"bss", s_bss, 0},
   {"even", s_even, 0},
   {"skip", s_space, 0},
   {"proc", s_proc, 0},
@@ -5493,16 +5491,6 @@ s_data2 (int ignore ATTRIBUTE_UNUSED)
   demand_empty_rest_of_line ();
 }
 
-static void
-s_bss (int ignore ATTRIBUTE_UNUSED)
-{
-  /* We don't support putting frags in the BSS segment, we fake it
-     by marking in_bss, then looking at s_skip for clues.  */
-
-  subseg_set (bss_section, 0);
-  demand_empty_rest_of_line ();
-}
-
 static void
 s_even (int ignore ATTRIBUTE_UNUSED)
 {