aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-07-23 12:42:07 +0000
committerNick Clifton <nickc@redhat.com>2009-07-23 12:42:07 +0000
commit6ec8e7022b6b6a69ee682d1797e8bfec473aae11 (patch)
tree9c35e46f045da254a3d3f0451541ed035878bebf /gas
parenta946d7e38e4e55fb6b71f71d896e83c39ac404fa (diff)
downloadgdb-6ec8e7022b6b6a69ee682d1797e8bfec473aae11.zip
gdb-6ec8e7022b6b6a69ee682d1797e8bfec473aae11.tar.gz
gdb-6ec8e7022b6b6a69ee682d1797e8bfec473aae11.tar.bz2
Oops - forgot to commit this part of a previous delta:
* config/tc-arm.c (arm_frag_align_code): Replace hard coded constant with MAX_MEM_FOR_RS_ALIGN_CODE.
Diffstat (limited to 'gas')
-rw-r--r--gas/config/tc-arm.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 31eb480..ea44399 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -18385,9 +18385,16 @@ arm_frag_align_code (int n, int max)
char * p;
/* We assume that there will never be a requirement
- to support alignments greater than 32 bytes. */
+ to support alignments greater than MAX_MEM_FOR_RS_ALIGN_CODE bytes. */
if (max > MAX_MEM_FOR_RS_ALIGN_CODE)
- as_fatal (_("alignments greater than 32 bytes not supported in .text sections."));
+ {
+ char err_msg[128];
+
+ sprintf (err_msg,
+ _("alignments greater than %d bytes not supported in .text sections."),
+ MAX_MEM_FOR_RS_ALIGN_CODE + 1);
+ as_fatal (err_msg);
+ }
p = frag_var (rs_align_code,
MAX_MEM_FOR_RS_ALIGN_CODE,