diff options
| author | christos <christos@NetBSD.org> | 2018-12-27 18:58:14 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2018-12-27 18:58:14 +0000 |
| commit | 8102fbc55f48427fd07aff125d4d55be75c130b1 (patch) | |
| tree | 3c39455d71676f78c8e1327b0928249528db1125 /libexec | |
| parent | c8f3153c1152205627ad5d69fb47728a0a8e472b (diff) | |
initfini array support for everyone.
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/ld.elf_so/Makefile | 3 | ||||
| -rw-r--r-- | libexec/ld.elf_so/arch/aarch64/Makefile.inc | 3 | ||||
| -rw-r--r-- | libexec/ld.elf_so/arch/arm/Makefile.inc | 3 | ||||
| -rw-r--r-- | libexec/ld.elf_so/arch/riscv/Makefile.inc | 3 |
4 files changed, 5 insertions, 7 deletions
diff --git a/libexec/ld.elf_so/Makefile b/libexec/ld.elf_so/Makefile index 1d08032b096..776f637dee7 100644 --- a/libexec/ld.elf_so/Makefile +++ b/libexec/ld.elf_so/Makefile @@ -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 diff --git a/libexec/ld.elf_so/arch/aarch64/Makefile.inc b/libexec/ld.elf_so/arch/aarch64/Makefile.inc index 15d68406d19..1d19a83fc94 100644 --- a/libexec/ld.elf_so/arch/aarch64/Makefile.inc +++ b/libexec/ld.elf_so/arch/aarch64/Makefile.inc @@ -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 diff --git a/libexec/ld.elf_so/arch/arm/Makefile.inc b/libexec/ld.elf_so/arch/arm/Makefile.inc index b21be59fe9d..52d4520ff3d 100644 --- a/libexec/ld.elf_so/arch/arm/Makefile.inc +++ b/libexec/ld.elf_so/arch/arm/Makefile.inc @@ -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 diff --git a/libexec/ld.elf_so/arch/riscv/Makefile.inc b/libexec/ld.elf_so/arch/riscv/Makefile.inc index 74064faecd1..cbb3e61ab1d 100644 --- a/libexec/ld.elf_so/arch/riscv/Makefile.inc +++ b/libexec/ld.elf_so/arch/riscv/Makefile.inc @@ -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 |
