aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1993-02-08 19:22:18 +0000
committerKen Raeburn <raeburn@cygnus>1993-02-08 19:22:18 +0000
commit22a8927a96697f9668eb0c12c0c721c30ac02a3f (patch)
treeceb625b07ce1e1c295444cd52af7c1bbd2040bbe /gas/config
parent51d8eae92d57be1c2a99976551045a591fb165cf (diff)
downloadgdb-22a8927a96697f9668eb0c12c0c721c30ac02a3f.zip
gdb-22a8927a96697f9668eb0c12c0c721c30ac02a3f.tar.gz
gdb-22a8927a96697f9668eb0c12c0c721c30ac02a3f.tar.bz2
Move VMS version of SUB_SEGMENT_ALIGN to obj-vms.h from write.h.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/obj-vms.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/gas/config/obj-vms.h b/gas/config/obj-vms.h
index 67a717b..c9906f5 100644
--- a/gas/config/obj-vms.h
+++ b/gas/config/obj-vms.h
@@ -22,13 +22,21 @@ to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "targ-cpu.h"
+/* This macro controls subsection alignment within a section.
+ *
+ * Under VAX/VMS, the linker (and PSECT specifications)
+ * take care of correctly aligning the segments.
+ * Doing the alignment here (on initialized data) can
+ * mess up the calculation of global data PSECT sizes.
+ */
+#define SUB_SEGMENT_ALIGN(SEG) (((SEG) == data_section) ? 0 : 2)
+
/* This flag is used to remember whether we are in the const or the
data section. By and large they are identical, but we set a no-write
bit for psects in the const section. */
extern char const_flag;
-
/* These are defined in obj-vms.c. */
extern const short seg_N_TYPE[];
extern const segT N_TYPE_seg[];