summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-elf/Makefile
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2010-07-10 17:43:24 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2010-07-10 17:43:24 +0000
commit615d4b84bcef2f3f5b08ebb0d3f3a4c48c3ba25a (patch)
tree11b3fdc9a007b4e33b98f36eaec3ed1f7d427a4b /libexec/rtld-elf/Makefile
parent4895e1982dab6f0e5df6b297363fe7dcfb922dbd (diff)
downloadFreeBSD-src-615d4b84bcef2f3f5b08ebb0d3f3a4c48c3ba25a.zip
FreeBSD-src-615d4b84bcef2f3f5b08ebb0d3f3a4c48c3ba25a.tar.gz
RTLD support for powerpc64. A few small modifications to the Makefile
and symbol map are required to support various consequences of the dot symbol scheme: - Symbols beginning with a dot are reserved, so start private symbols with an underscore. - In order to set RTLD breakpoints, gdb must be able to locate the text entry point, not the data section function descriptor, so add .r_debug_state to the symbol map on powerpc64. Obtained from: projects/ppc64
Diffstat (limited to 'libexec/rtld-elf/Makefile')
-rw-r--r--libexec/rtld-elf/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile
index d6df617..2f5d574 100644
--- a/libexec/rtld-elf/Makefile
+++ b/libexec/rtld-elf/Makefile
@@ -11,7 +11,11 @@ MAN= rtld.1
CSTD?= gnu99
CFLAGS+= -Wall -DFREEBSD_ELF -DIN_RTLD
CFLAGS+= -I${.CURDIR}/${MACHINE_ARCH} -I${.CURDIR}
+.if ${MACHINE_ARCH} == "powerpc64"
+LDFLAGS+= -nostdlib -e _rtld_start
+.else
LDFLAGS+= -nostdlib -e .rtld_start
+.endif
WARNS?= 2
INSTALLFLAGS= -C -b
PRECIOUSPROG=
OpenPOWER on IntegriCloud