summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorrahnds <rahnds@openbsd.org>1997-04-23 21:28:15 +0000
committerrahnds <rahnds@openbsd.org>1997-04-23 21:28:15 +0000
commiteb817aac7b06754e9ce02fb1212ef2a93d8f0d7d (patch)
treedfa89ebf58f6488cff330668bf8ed710f4784e76 /lib/libc
parentCommit the gas and ld portions for the mvme88k port. (diff)
downloadwireguard-openbsd-eb817aac7b06754e9ce02fb1212ef2a93d8f0d7d.tar.xz
wireguard-openbsd-eb817aac7b06754e9ce02fb1212ef2a93d8f0d7d.zip
Fix "bug" in linker. actually was bug in asm files that did not correctly
align the global data. This allows the workaround in crt0 to be removed.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/mvme88k/sys/brk.S3
-rw-r--r--lib/libc/arch/mvme88k/sys/sbrk.S7
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/libc/arch/mvme88k/sys/brk.S b/lib/libc/arch/mvme88k/sys/brk.S
index b56693a755d..306f2902a31 100644
--- a/lib/libc/arch/mvme88k/sys/brk.S
+++ b/lib/libc/arch/mvme88k/sys/brk.S
@@ -38,7 +38,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
.data
/*.asciz "from: @(#)brk.s 5.1 (Berkeley) 5/12/90"*/
- .asciz "$Id: brk.S,v 1.1 1997/03/25 17:07:16 rahnds Exp $"
+ .asciz "$Id: brk.S,v 1.2 1997/04/23 21:28:16 rahnds Exp $"
.text
#endif /* LIBC_SCCS and not lint */
@@ -49,6 +49,7 @@
.globl curbrk
.data
+ .align 2
minbrk: .long 0
.text
diff --git a/lib/libc/arch/mvme88k/sys/sbrk.S b/lib/libc/arch/mvme88k/sys/sbrk.S
index 497aa7711d3..27eac928b77 100644
--- a/lib/libc/arch/mvme88k/sys/sbrk.S
+++ b/lib/libc/arch/mvme88k/sys/sbrk.S
@@ -38,7 +38,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
.data
/*.asciz "from: @(#)sbrk.s 5.1 (Berkeley) 5/12/90"*/
- .asciz "$Id: sbrk.S,v 1.2 1997/04/21 21:04:37 rahnds Exp $"
+ .asciz "$Id: sbrk.S,v 1.3 1997/04/23 21:28:16 rahnds Exp $"
.text
#endif /* LIBC_SCCS and not lint */
@@ -48,10 +48,11 @@
.globl curbrk
.data
-curbrk: .long 0
/*
-curbrk: .long _end
+curbrk: .long 0
*/
+ .align 2
+curbrk: .long _end
.text
ENTRY(sbrk)