Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ld.elf_so initfini array support for everyone.
details: https://anonhg.NetBSD.org/src/rev/4f0af633951e
branches: trunk
changeset: 446997:4f0af633951e
user: christos <christos%NetBSD.org@localhost>
date: Thu Dec 27 18:58:14 2018 +0000
description:
initfini array support for everyone.
diffstat:
libexec/ld.elf_so/Makefile | 3 ++-
libexec/ld.elf_so/arch/aarch64/Makefile.inc | 3 +--
libexec/ld.elf_so/arch/arm/Makefile.inc | 3 +--
libexec/ld.elf_so/arch/riscv/Makefile.inc | 3 +--
4 files changed, 5 insertions(+), 7 deletions(-)
diffs (67 lines):
diff -r d9a3461793d3 -r 4f0af633951e libexec/ld.elf_so/Makefile
--- a/libexec/ld.elf_so/Makefile Thu Dec 27 18:57:43 2018 +0000
+++ b/libexec/ld.elf_so/Makefile Thu Dec 27 18:58:14 2018 +0000
@@ -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+= -DRTLD_LOADER
CPPFLAGS+= -DGNU_RELRO
CPPFLAGS+= -D_RTLD_SOURCE
+CPPFLAGS+= -DHAVE_INITFINI_ARRAY
#CPPFLAGS+= -DDEBUG
#CPPFLAGS+= -DRTLD_DEBUG
#CPPFLAGS+= -DRTLD_DEBUG_RELOC
diff -r d9a3461793d3 -r 4f0af633951e libexec/ld.elf_so/arch/aarch64/Makefile.inc
--- a/libexec/ld.elf_so/arch/aarch64/Makefile.inc Thu Dec 27 18:57:43 2018 +0000
+++ b/libexec/ld.elf_so/arch/aarch64/Makefile.inc Thu Dec 27 18:58:14 2018 +0000
@@ -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 @@
CPPFLAGS+= -fpic
CPPFLAGS+= -DELFSIZE=64
-CPPFLAGS+= -DHAVE_INITFINI_ARRAY
CPPFLAGS+= -DELF_NOTE_MARCH_DESC=\"${LDELFSO_MACHINE_ARCH}\"
LDFLAGS+= -Wl,-e,_rtld_start
diff -r d9a3461793d3 -r 4f0af633951e libexec/ld.elf_so/arch/arm/Makefile.inc
--- a/libexec/ld.elf_so/arch/arm/Makefile.inc Thu Dec 27 18:57:43 2018 +0000
+++ b/libexec/ld.elf_so/arch/arm/Makefile.inc Thu Dec 27 18:58:14 2018 +0000
@@ -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+= -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 -r d9a3461793d3 -r 4f0af633951e libexec/ld.elf_so/arch/riscv/Makefile.inc
--- a/libexec/ld.elf_so/arch/riscv/Makefile.inc Thu Dec 27 18:57:43 2018 +0000
+++ b/libexec/ld.elf_so/arch/riscv/Makefile.inc Thu Dec 27 18:58:14 2018 +0000
@@ -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 @@
.else
CPPFLAGS+= -DELFSIZE=32
.endif
-CPPFLAGS+= -DHAVE_INITFINI_ARRAY
LDFLAGS+= -Wl,-e,_rtld_start
Home |
Main Index |
Thread Index |
Old Index