aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-02-22 03:49:42 +0000
committerIan Lance Taylor <ian@airs.com>1994-02-22 03:49:42 +0000
commit9d90491e82ebbeb1edd55213c5ed5e63f71af8d1 (patch)
tree135337eb1705a13c80596f920648cc0a19849e90 /gas
parentaaca79a831914a9dcb8783593a873402c93f1dfc (diff)
downloadgdb-9d90491e82ebbeb1edd55213c5ed5e63f71af8d1.zip
gdb-9d90491e82ebbeb1edd55213c5ed5e63f71af8d1.tar.gz
gdb-9d90491e82ebbeb1edd55213c5ed5e63f71af8d1.tar.bz2
* read.c (s_lcomm): Use an alignment power of 3 for 8 byte .lcomm
variables.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog7
-rw-r--r--gas/read.c4
2 files changed, 10 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 4e82cfc..eed019d 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,12 @@
Mon Feb 21 11:41:18 1994 Ian Lance Taylor (ian@cygnus.com)
+ * config/obj-coffbfd.c (write_object_file): use bfd_get_error (),
+ not bfd_error.
+ * config/obj-elf.c (elf_frob_file): Likewise.
+
+ * read.c (s_lcomm): Use an alignment power of 3 for 8 byte .lcomm
+ variables.
+
* config/ho-hpux.h (BROKEN_ASSERT): Define if not __GNUC__.
* read.c (read_a_source_file): Use correct arguments to memcpy
diff --git a/gas/read.c b/gas/read.c
index 3390f46..440d6b9 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -1103,7 +1103,9 @@ s_lcomm (needs_align)
if (!needs_align)
{
/* FIXME. This needs to be machine independent. */
- if (temp >= 4)
+ if (temp >= 8)
+ align = 3;
+ else if (temp >= 4)
align = 2;
else if (temp >= 2)
align = 1;