From db64036e6c9aa7d69d357e1bd57dea32270f4be0 Mon Sep 17 00:00:00 2001 From: ross Date: Fri, 7 Jul 2006 06:50:06 +0000 Subject: [PATCH] fix @toc reference macro --- lib/libc/arch/powerpc64/sys/brk.S | 7 +++++-- lib/libc/arch/powerpc64/sys/sbrk.S | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/libc/arch/powerpc64/sys/brk.S b/lib/libc/arch/powerpc64/sys/brk.S index 6cc16c6cb4cc..6eb574d1bb52 100644 --- a/lib/libc/arch/powerpc64/sys/brk.S +++ b/lib/libc/arch/powerpc64/sys/brk.S @@ -1,4 +1,4 @@ -/* $NetBSD: brk.S,v 1.2 2006/07/06 17:05:04 ross Exp $ */ +/* $NetBSD: brk.S,v 1.3 2006/07/07 06:50:06 ross Exp $ */ #include "SYS.h" @@ -12,11 +12,14 @@ WEAK_ALIAS(brk, _brk) .macro LdAddr r,sym .pushsection ".toc","aw" -100: .tc sym[TC],sym +100: .tc \sym[TC],\sym .popsection ld \r,100b@toc(2) .endm + .data +_C_LABEL(__minbrk): + .long _C_LABEL(_end) .text ENTRY(_brk) diff --git a/lib/libc/arch/powerpc64/sys/sbrk.S b/lib/libc/arch/powerpc64/sys/sbrk.S index 5e147f1c464f..75d9b2ee7433 100644 --- a/lib/libc/arch/powerpc64/sys/sbrk.S +++ b/lib/libc/arch/powerpc64/sys/sbrk.S @@ -1,4 +1,4 @@ -/* $NetBSD: sbrk.S,v 1.2 2006/07/05 18:28:43 ross Exp $ */ +/* $NetBSD: sbrk.S,v 1.3 2006/07/07 06:50:06 ross Exp $ */ #include "SYS.h" @@ -17,7 +17,7 @@ _C_LABEL(__curbrk): .macro LdAddr r,sym .pushsection ".toc","aw" -100: .tc sym[TC],sym +100: .tc \sym[TC],\sym .popsection ld \r,100b@toc(2) .endm