Fix the RX assembler's section alignment parameter to use multiples of N rather than...
authorNick Clifton <nickc@redhat.com>
Mon, 2 Nov 2015 13:46:13 +0000 (13:46 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 2 Nov 2015 13:46:13 +0000 (13:46 +0000)
* config/tc-rx.c (parse_rx_section): Align parameter provides a
multiple of n argument, not a power of n argument.

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

index af1540cf3ecf6f6b9b2baa138520884dd9f1f84c..0ef70adbc5ab1557196aea8451bf884ed604cc72 100644 (file)
@@ -1,3 +1,8 @@
+2015-11-02  Nick Clifton  <nickc@redhat.com>
+
+       * config/tc-rx.c (parse_rx_section): Align parameter provides a
+       multiple of n argument, not a power of n argument.
+
 2015-10-29  Nick Clifton  <nickc@redhat.com>
 
        * config/tc-aarch64.c (elf64_aarch64_target_format): Select the
index 4345d58e5867eed51993bd2408f62481cb20148b..8e99fa3ec7c52ab1278e895d968fab5e342a56df 100644 (file)
@@ -400,7 +400,7 @@ parse_rx_section (char * name)
   asection * sec;
   int   type;
   int   attr = SHF_ALLOC | SHF_EXECINSTR;
-  int   align = 2;
+  int   align = 1;
   char  end_char;
 
   do
@@ -428,9 +428,9 @@ parse_rx_section (char * name)
                p++;
              switch (*p)
                {
-               case '2': align = 2; break;
-               case '4': align = 4; break;
-               case '8': align = 8; break;
+               case '2': align = 1; break;
+               case '4': align = 2; break;
+               case '8': align = 3; break;
                default:
                  as_bad (_("unrecognised alignment value in .SECTION directive: %s"), p);
                  ignore_rest_of_line ();
This page took 0.031891 seconds and 4 git commands to generate.