Fix the RX assembler's section alignment parameter to use multiples of N rather than powers of N

* config/tc-rx.c (parse_rx_section): Align parameter provides a
	multiple of n argument, not a power of n argument.
This commit is contained in:
Nick Clifton 2015-11-02 13:46:13 +00:00
parent 1e52a07355
commit a62e598977
2 changed files with 9 additions and 4 deletions

View 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

View 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 ();