aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2007-11-04 23:49:09 +0000
committerDanny Smith <dannysmith@users.sourceforge.net>2007-11-04 23:49:09 +0000
commit11ec4ba97796b1bdfc68b034ce3f719af81c3e48 (patch)
tree915761ca29d546532e04c61bb0b54b2caa9a0f1b /gas
parent4c9b8248edefb916b9d4265ecdcde15a2bb688b9 (diff)
downloadgdb-11ec4ba97796b1bdfc68b034ce3f719af81c3e48.zip
gdb-11ec4ba97796b1bdfc68b034ce3f719af81c3e48.tar.gz
gdb-11ec4ba97796b1bdfc68b034ce3f719af81c3e48.tar.bz2
include
* coff/pe.h (COFF_ENCODE_ALIGNMENT) Define. gas * read.c (ALIGN_LIMIT): Rename to ... (TC_ALIGN_LIMIT): Guard against prior definition. * config/tc-i386.h (TC_ALIGN_LIMIT)[TE_PE]: Define. bfd * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Let .data, .text and .bss section use the default. * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. ld/testsuite * ld-scripts/align.exp: Enable for PECOFF. * ld-scripts/alignof.exp: Likewise.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/read.c7
2 files changed, 10 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 8ec6734..637be80 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2007-11-05 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * read.c (ALIGN_LIMIT): Rename to ...
+ (TC_ALIGN_LIMIT): Guard against prior definition.
+ * config/tc-i386.h (TC_ALIGN_LIMIT)[TE_PE]: Define.
+
2007-11-01 Sterling Augustine <sterling@tensilica.com>
* config/tc-xtensa.c (xtensa_symbol_new_hook): New.
diff --git a/gas/read.c b/gas/read.c
index 1162139..2f3b238 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -1276,13 +1276,14 @@ do_align (int n, char *fill, int len, int max)
(in bytes). A negative ARG is the negative of the length of the
fill pattern. BYTES_P is non-zero if the alignment value should be
interpreted as the byte boundary, rather than the power of 2. */
-
-#define ALIGN_LIMIT (stdoutput->arch_info->bits_per_address - 1)
+#ifndef TC_ALIGN_LIMIT
+#define TC_ALIGN_LIMIT (stdoutput->arch_info->bits_per_address - 1)
+#endif
static void
s_align (int arg, int bytes_p)
{
- unsigned int align_limit = ALIGN_LIMIT;
+ unsigned int align_limit = TC_ALIGN_LIMIT;
unsigned int align;
char *stop = NULL;
char stopc = 0;