summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2011-12-04 16:57:13 +0000
committermiod <miod@openbsd.org>2011-12-04 16:57:13 +0000
commitbc1414b093e70be07f5e515baccf3bca2d346800 (patch)
tree98a8abde92cbed37c968ec2a447e82f2c6101059
parentSupport "jump to" like vi in copy mode using t and T keys. Also add x (diff)
downloadwireguard-openbsd-bc1414b093e70be07f5e515baccf3bca2d346800.tar.xz
wireguard-openbsd-bc1414b093e70be07f5e515baccf3bca2d346800.zip
Restore MAX_OFILE_ALIGNMENT define (lost during the gcc3 -> gcc4 switch),
and change ASM_OUTPUT_ALIGNED_COMMON to output an explicit .align directive, as gas will not compute it from the size (despite what comments elsewhere in gcc code say). This effectively makes __attribute__ ((aligned (N))) constructs work as intended for .bss objects. ok kettenis@
-rw-r--r--gnu/gcc/gcc/config/pa/openbsd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/gcc/gcc/config/pa/openbsd.h b/gnu/gcc/gcc/config/pa/openbsd.h
index 675a400e1e6..016c222adae 100644
--- a/gnu/gcc/gcc/config/pa/openbsd.h
+++ b/gnu/gcc/gcc/config/pa/openbsd.h
@@ -30,6 +30,8 @@ Boston, MA 02111-1307, USA. */
#undef TARGET_ELF32
#define TARGET_ELF32 1
+#undef MAX_OFILE_ALIGNMENT
+#define MAX_OFILE_ALIGNMENT 0x8000
/* Run-time target specifications. */
#undef TARGET_OS_CPP_BUILTINS
@@ -128,6 +130,7 @@ Boston, MA 02111-1307, USA. */
{ \
switch_to_section (bss_section); \
assemble_name((FILE), (NAME)); \
+ fprintf((FILE), "\t.align %d\n", ((ALIGN) / BITS_PER_UNIT)); \
fprintf ((FILE), "\t.comm %d\n", \
MAX ((SIZE), ((ALIGN) / BITS_PER_UNIT))); \
} \