diff options
author | Nick Clifton <nickc@redhat.com> | 2003-11-27 08:29:29 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2003-11-27 08:29:29 +0000 |
commit | 6c92899b2ba02a71f3c46791b1d2cd3e54d820f9 (patch) | |
tree | 2d58ddd595e3491ea9a8ac2db21d512e74be65a3 | |
parent | f5ca92c3e994b47e6a18a9fb4fda103526d9f152 (diff) | |
download | binutils-redhat-6c92899b2ba02a71f3c46791b1d2cd3e54d820f9.tar.gz |
Check for alignment when emitting constants on the sh-elf target
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/config/tc-sh.c | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index a5c7f401ee..aaf8b965a9 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2003-11-27 Nick Clifton <nickc@redhat.com> + + * config/tc-sh.c (sh_elf_cons): If md_cons_align is defined + call it to make sure that the constants that are going to be + emitted are correctly aligned. + 2003-11-27 Alexandre Oliva <aoliva@redhat.com> * config/tc-frv.c (md_pcrel_from_section): Don't adjust when diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c index 0bacdce122..c49949185c 100644 --- a/gas/config/tc-sh.c +++ b/gas/config/tc-sh.c @@ -801,6 +801,10 @@ sh_elf_cons (register int nbytes) return; } +#ifdef md_cons_align + md_cons_align (nbytes); +#endif + do { expression (&exp); |