f80c3669c3
- Move to a shared _rtld_call_ifunc for rel and rela architectures - Architectures using rel format must patch IRELATIVE non-PLT relocations like RELATIVE in additition to the later ifunc handling - Consistently record the delta to the end of the relocation group for non-PLT IRELATIVE relocations Hidden ifunc is now supported on all ifunc platforms, even when using -fno-plt. The combination of -fno-plt and relro is broken due to incorrect GNU ld output though.
17 lines
381 B
Makefile
17 lines
381 B
Makefile
# $NetBSD: Makefile.inc,v 1.16 2018/04/03 21:10:27 joerg Exp $
|
|
|
|
SRCS+= ppc_reloc.c
|
|
LDFLAGS+= -Wl,-e,_rtld_start
|
|
|
|
CPPFLAGS+= -fPIC
|
|
CPPFLAGS+= -DRTLD_COMMON_CALL_IFUNC_RELA
|
|
|
|
.if ${LDELFSO_MACHINE_ARCH} == "powerpc64"
|
|
SRCS+= rtld_start64.S
|
|
CPPFLAGS+= -DELFSIZE=64
|
|
.else
|
|
SRCS+= rtld_start.S
|
|
CPPFLAGS+= -DELFSIZE=32
|
|
LDFLAGS+= -Wl,--script,${.CURDIR}/arch/powerpc/ld.so.script
|
|
.endif
|