diff options
author | Pascal Stumpf <pascal@cvs.openbsd.org> | 2012-08-22 17:19:36 +0000 |
---|---|---|
committer | Pascal Stumpf <pascal@cvs.openbsd.org> | 2012-08-22 17:19:36 +0000 |
commit | 0b17a3ce8acce6123900b78334061ec5da7fff13 (patch) | |
tree | 899daa1fa911a22452f013b57bb5873909dd7ed4 /lib/libc/arch/hppa/sys/sbrk.S | |
parent | 9e13e109aa5166fac25ad417e38996ce27251c67 (diff) |
Convert cpp | as rules in bsd.lib.mk and lib/libc/sys/Makefile.inc to pure cc
invocations. This allows us to use the compiler builtin define __PIC__ to check
for PIC/PIEness rather than passing -DPIC. Simplifies PIE work a lot.
ok matthew@, conceptually ok kurt@
Diffstat (limited to 'lib/libc/arch/hppa/sys/sbrk.S')
-rw-r--r-- | lib/libc/arch/hppa/sys/sbrk.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/arch/hppa/sys/sbrk.S b/lib/libc/arch/hppa/sys/sbrk.S index 1813d6ad85e..91ccd18c21c 100644 --- a/lib/libc/arch/hppa/sys/sbrk.S +++ b/lib/libc/arch/hppa/sys/sbrk.S @@ -1,4 +1,4 @@ -/* $OpenBSD: sbrk.S,v 1.13 2006/01/05 22:13:55 kettenis Exp $ */ +/* $OpenBSD: sbrk.S,v 1.14 2012/08/22 17:19:34 pascal Exp $ */ /* * Copyright (c) 1999 Michael Shalayeff @@ -36,7 +36,7 @@ __curbrk .long end SYSENTRY(sbrk) -#ifdef PIC +#ifdef __PIC__ addil LT%__curbrk, r19 ldw RT%__curbrk(r1), t1 ldw 0(t1), t2 @@ -49,7 +49,7 @@ SYSENTRY(sbrk) SYSCALL(break) -#ifdef PIC +#ifdef __PIC__ addil LT%__curbrk, r19 ldw RT%__curbrk(r1), t1 #else |