initfini array support for everyone.

This commit is contained in:
christos 2018-12-27 18:58:14 +00:00
parent ba044c6310
commit 2c62c57fa6
4 changed files with 5 additions and 7 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.139 2018/10/17 23:36:58 joerg Exp $
# $NetBSD: Makefile,v 1.140 2018/12/27 18:58:14 christos Exp $
#
# NOTE: when changing ld.so, ensure that ldd still compiles.
#
@ -97,6 +97,7 @@ CPPFLAGS+= -I${.CURDIR} -I. -D_KERNTYPES
CPPFLAGS+= -DRTLD_LOADER
CPPFLAGS+= -DGNU_RELRO
CPPFLAGS+= -D_RTLD_SOURCE
CPPFLAGS+= -DHAVE_INITFINI_ARRAY
#CPPFLAGS+= -DDEBUG
#CPPFLAGS+= -DRTLD_DEBUG
#CPPFLAGS+= -DRTLD_DEBUG_RELOC

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.1 2014/08/10 05:47:37 matt Exp $
# $NetBSD: Makefile.inc,v 1.2 2018/12/27 18:58:14 christos Exp $
SRCS+= rtld_start.S mdreloc.c
@ -6,7 +6,6 @@ SRCS+= rtld_start.S mdreloc.c
CPPFLAGS+= -fpic
CPPFLAGS+= -DELFSIZE=64
CPPFLAGS+= -DHAVE_INITFINI_ARRAY
CPPFLAGS+= -DELF_NOTE_MARCH_DESC=\"${LDELFSO_MACHINE_ARCH}\"
LDFLAGS+= -Wl,-e,_rtld_start

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.21 2018/04/03 21:10:27 joerg Exp $
# $NetBSD: Makefile.inc,v 1.22 2018/12/27 18:58:14 christos Exp $
SRCS+= rtld_start.S mdreloc.c
#CPUFLAGS.rtld_start.S+= -marm
@ -9,7 +9,6 @@ CPPFLAGS+= -fpic
CPPFLAGS+= -DELFSIZE=32
CPPFLAGS+= -DRTLD_COMMON_CALL_IFUNC_REL
.if !empty(LDELFSO_MACHINE_ARCH:Mearm*)
CPPFLAGS+= -DHAVE_INITFINI_ARRAY
CPPFLAGS+= -DELF_NOTE_MARCH_DESC=\"${LDELFSO_MACHINE_ARCH}\"
SRCS+= find_exidx.c
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.1 2014/09/19 17:36:25 matt Exp $
# $NetBSD: Makefile.inc,v 1.2 2018/12/27 18:58:14 christos Exp $
SRCS+= rtld_start.S mdreloc.c
@ -10,6 +10,5 @@ CPPFLAGS+= -DELFSIZE=64
.else
CPPFLAGS+= -DELFSIZE=32
.endif
CPPFLAGS+= -DHAVE_INITFINI_ARRAY
LDFLAGS+= -Wl,-e,_rtld_start