aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-08-09 04:42:15 +0000
committerIan Lance Taylor <ian@airs.com>1999-08-09 04:42:15 +0000
commit1a1ae23e5220efb755aeccf0a094eba4245e1816 (patch)
tree8b1de739cf45f333b6699c7f86cb5b0895af4bb7
parent171a4983e73c90ac1374b4c5e2d7699d0611658c (diff)
downloadgdb-1a1ae23e5220efb755aeccf0a094eba4245e1816.zip
gdb-1a1ae23e5220efb755aeccf0a094eba4245e1816.tar.gz
gdb-1a1ae23e5220efb755aeccf0a094eba4245e1816.tar.bz2
* config/tc-i386.h (SUB_SEGMENT_ALIGN): If TE_GO32, return 4 for
certain sections, to match BFD changes.
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-i386.h14
2 files changed, 20 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 3d1f353..43ee309 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,7 +1,13 @@
+1999-08-09 Ian Lance Taylor <ian@zembu.com>
+
+ * config/tc-i386.h (SUB_SEGMENT_ALIGN): If TE_GO32, return 4 for
+ certain sections, to match BFD changes.
+
1999-08-08 Mumit Khan <khan@xraylith.wisc.edu>
* Makefile.am (noinst_SCRIPTS): Change .gdbinit to $(GDBINIT).
(EXTRA_SCRIPTS): Define to keep automake happy.
+ * Makefile.in: Rebuild.
1999-08-08 Ian Lance Taylor <ian@zembu.com>
diff --git a/gas/config/tc-i386.h b/gas/config/tc-i386.h
index 41ebb86..b263b28 100644
--- a/gas/config/tc-i386.h
+++ b/gas/config/tc-i386.h
@@ -118,7 +118,21 @@ extern const char *i386_target_format PARAMS ((void));
extern short tc_coff_fix2rtype PARAMS ((struct fix *));
#define TC_COFF_SIZEMACHDEP(frag) tc_coff_sizemachdep(frag)
extern int tc_coff_sizemachdep PARAMS ((fragS *frag));
+
+#ifdef TE_GO32
+/* DJGPP now expects some sections to be 2**4 aligned. */
+#define SUB_SEGMENT_ALIGN(SEG) \
+ ((strcmp (obj_segment_name (SEG), ".text") == 0 \
+ || strcmp (obj_segment_name (SEG), ".data") == 0 \
+ || strncmp (obj_segment_name (SEG), ".gnu.linkonce.t", 15) == 0 \
+ || strncmp (obj_segment_name (SEG), ".gnu.linkonce.d", 15) == 0 \
+ || strncmp (obj_segment_name (SEG), ".gnu.linkonce.r", 15) == 0) \
+ ? 4 \
+ : 2)
+#else
#define SUB_SEGMENT_ALIGN(SEG) 2
+#endif
+
#define TC_RVA_RELOC 7
/* Need this for PIC relocations */
#define NEED_FX_R_TYPE