[09/22] rl78: drop .bss override

Message ID e1b4bcdd-8a39-4862-bada-eda668822ee9@suse.com
State New
Headers
Series ELF: correct handling of simplified section directives |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_binutils_build--master-arm success Testing passed
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_binutils_check--master-arm success Testing passed

Commit Message

Jan Beulich Dec. 15, 2023, 12:12 p.m. UTC
  It doesn't look to be a good idea to override the custom handler that
ELF has; afaict doing so broke .previous.
  

Patch

--- a/gas/config/tc-rl78.c
+++ b/gas/config/tc-rl78.c
@@ -375,16 +375,6 @@  md_show_usage (FILE * stream)
 }
 
 static void
-s_bss (int ignore ATTRIBUTE_UNUSED)
-{
-  int temp;
-
-  temp = get_absolute_expression ();
-  subseg_set (bss_section, (subsegT) temp);
-  demand_empty_rest_of_line ();
-}
-
-static void
 rl78_float_cons (int ignore ATTRIBUTE_UNUSED)
 {
   if (elf_flags & E_FLAG_RL78_64BIT_DOUBLES)
@@ -397,7 +387,6 @@  const pseudo_typeS md_pseudo_table[] =
 {
   /* Our "standard" pseudos.  */
   { "double", rl78_float_cons,	'd' },
-  { "bss",    s_bss, 		0 },
   { "3byte",  cons,		3 },
   { "int",    cons,		4 },
   { "word",   cons,		4 },