This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: What's the meaning of "Algn" in "objdump -h"?
Hi Zuxy,
Thanks the trick works! But can mingw32 binutils be updated to support
".lcomm <name>, <size>, <align>"? That looks a lot cleaner.
Good point, that would be better.
How about trying out the attached patch instead ?
Cheers
Nick
Index: gcc/config/i386/bsd.h
===================================================================
--- gcc/config/i386/bsd.h (revision 137552)
+++ gcc/config/i386/bsd.h (working copy)
@@ -65,6 +65,11 @@
assemble_name ((FILE), (NAME)), \
fprintf ((FILE), ",%u\n", (int)(ROUNDED)))
+#define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGNMENT) \
+( fputs (".lcomm ", (FILE)), \
+ assemble_name ((FILE), (NAME)), \
+ fprintf ((FILE), ",%u,%u\n", (int)(SIZE), (int)(ALIGNMENT) / BITS_PER_UNIT))
+
/* This is how to output an assembler line
that says to advance the location counter
to a multiple of 2**LOG bytes. */
Index: gas/config/tc-i386.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-i386.c,v
retrieving revision 1.344
diff -c -3 -p -r1.344 tc-i386.c
*** gas/config/tc-i386.c 3 Jun 2008 17:31:52 -0000 1.344
--- gas/config/tc-i386.c 9 Jul 2008 11:36:54 -0000
*************** const pseudo_typeS md_pseudo_table[] =
*** 694,699 ****
--- 694,701 ----
{"arch", set_cpu_arch, 0},
#ifndef I386COFF
{"bss", s_bss, 0},
+ #else
+ {"lcomm", s_lcomm_bytes, 1},
#endif
{"ffloat", float_cons, 'f'},
{"dfloat", float_cons, 'd'},