[GAS] change of ELF flags initial value in rx-linux
authorGunther Nikl <gnikl@justmail.de>
Tue, 5 May 2020 09:19:41 +0000 (10:19 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 5 May 2020 09:19:41 +0000 (10:19 +0100)
* config/tc-rx.c (elf_flags): Initialize for non-linux targets.
(md_parse_option): Remove initialization of elf_flags.

gas/ChangeLog
gas/config/tc-rx.c

index 8d664f5aa197a8ef50c70def427b009b05d673fa..1a4f01ace39beb3ff2474cb4ddd0d045de3cf8cb 100644 (file)
@@ -1,4 +1,7 @@
-2020-05-04  Nick Clifton  <nickc@redhat.com>
+2020-05-05  Gunther Nikl <gnikl@justmail.de>
+
+       * config/tc-rx.c (elf_flags): Initialize for non-linux targets.
+       (md_parse_option): Remove initialization of elf_flags.
 
 2020-05-04  Andre Vieira  <andre.simoesdiasvieira@arm.com>
 
index e3521d3193a1048e6447bb13eec8c813c968657d..6f8ac6ddd58fe92d913c3318cb308269a3e7738f 100644 (file)
@@ -41,17 +41,15 @@ const char line_separator_chars[] = "!";
 const char EXP_CHARS[]            = "eE";
 const char FLT_CHARS[]            = "dD";
 \f
-/* ELF flags to set in the output file header.  */
-static int elf_flags;
-
 #ifndef TE_LINUX
 bfd_boolean rx_use_conventional_section_names = FALSE;
+static int elf_flags = E_FLAG_RX_ABI;
 #else
 bfd_boolean rx_use_conventional_section_names = TRUE;
 static int elf_flags;
 #endif
-static bfd_boolean rx_use_small_data_limit = FALSE;
 
+static bfd_boolean rx_use_small_data_limit = FALSE;
 static bfd_boolean rx_pid_mode = FALSE;
 static int rx_num_int_regs = 0;
 int rx_pid_register;
@@ -130,9 +128,6 @@ struct cpu_type  cpu_type_list[] =
 int
 md_parse_option (int c ATTRIBUTE_UNUSED, const char * arg ATTRIBUTE_UNUSED)
 {
-#ifndef TE_LINUX
-  elf_flags = E_FLAG_RX_ABI;
-#endif
   switch (c)
     {
     case OPTION_BIG:
This page took 0.026545 seconds and 4 git commands to generate.