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).
This commit is contained in:
Nathan Whitehorn 2011-06-08 13:23:35 +00:00
parent 869052041d
commit f33b8de1dc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222859

View File

@ -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