[05/22] bfin: drop .bss override

Message ID 834c0389-a6ec-4f4c-a56e-9380f372eda6@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:09 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-bfin.c
+++ b/gas/config/tc-bfin.c
@@ -106,16 +106,6 @@  bfin_pic_ptr (int nbytes)
   demand_empty_rest_of_line ();
 }
 
-static void
-bfin_s_bss (int ignore ATTRIBUTE_UNUSED)
-{
-  int temp;
-
-  temp = get_absolute_expression ();
-  subseg_set (bss_section, (subsegT) temp);
-  demand_empty_rest_of_line ();
-}
-
 const pseudo_typeS md_pseudo_table[] = {
   {"align", s_align_bytes, 0},
   {"byte2", cons, 2},
@@ -128,7 +118,6 @@  const pseudo_typeS md_pseudo_table[] = {
   {"p", s_ignore, 0},
   {"pdata", s_ignore, 0},
   {"var", s_ignore, 0},
-  {"bss", bfin_s_bss, 0},
   {0, 0, 0}
 };