From 867f96b1e5084c2b28b71571a99eca58eb9239d0 Mon Sep 17 00:00:00 2001 From: nwhitehorn Date: Wed, 8 Jun 2011 13:23:35 +0000 Subject: Compile RTLD with global dot symbols on 64-bit PowerPC, as a crutch for GDB's ability to locate r_debug_state (which is actually the only function that need be compiled this way). --- libexec/rtld-elf/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'libexec') diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile index 45318b9..95bec19 100644 --- a/libexec/rtld-elf/Makefile +++ b/libexec/rtld-elf/Makefile @@ -17,6 +17,7 @@ RTLD_ARCH= ${MACHINE_CPUARCH} .endif CFLAGS+= -I${.CURDIR}/${RTLD_ARCH} -I${.CURDIR} .if ${MACHINE_ARCH} == "powerpc64" +CFLAGS+= -mcall-aixdesc LDFLAGS+= -nostdlib -e _rtld_start .else LDFLAGS+= -nostdlib -e .rtld_start -- cgit v1.1