This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "uClibc-ng - small C library for embedded systems".
The branch, master has been updated
via 0d80d5a235af1a12b606dea6380dc91f755546fe (commit)
from 03884934b32c79da545ef38a42835a6c257b125d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 0d80d5a235af1a12b606dea6380dc91f755546fe
Author: Waldemar Brodkorb <wbx(a)openadk.org>
Date: Wed Dec 28 19:08:15 2016 +0100
do not remove iconv.h when UCLIBC_HAS_LOCALE is not set
-----------------------------------------------------------------------
Summary of changes:
Makefile.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.in b/Makefile.in
index 9acf76c..c8afe1c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -282,7 +282,7 @@ HEADERS_RM-$(UCLIBC_HAS_IPV6) += netinet/ip6.h netinet/icmp6.h
HEADERS_RM-$(UCLIBC_HAS_BACKTRACE) += execinfo.h
HEADERS_RM-$(UCLIBC_HAS_LIBICONV) += iconv.h
HEADERS_RM-$(UCLIBC_HAS_LIBINTL) += intl.h
-HEADERS_RM-$(UCLIBC_HAS_LOCALE) += iconv.h bits/uClibc_ctype.h
+HEADERS_RM-$(UCLIBC_HAS_LOCALE) += bits/uClibc_ctype.h
HEADERS_RM-$(UCLIBC_HAS_PTY) += pty.h
HEADERS_RM-$(UCLIBC_HAS_REALTIME) += mqueue.h bits/mqueue.h sched.h \
bits/sched.h \
hooks/post-receive
--
uClibc-ng - small C library for embedded systems
Hi,
as there are some more users using uClibc-ng stuff, I would like to
share more often any features and bug fixes I am working on.
The last release removed some stuff, which should be better
communicated in advanced. Lesson learned.
I am working on following new stuff:
- integration of features required to build and run systemd.
- preadv&pwritev syscall wrappers
- secure_getenv function
- simple uchar.h
- addition of libidn support in getnameinfo()/getaddrinfo()
This allows to build and run minimal systemd without major patching.
Some nss code need to be disabled via a patch.
- integration of AARCH64 support from GNU libc
- static bootup in Qemu works
- ld.so support is missing
- NPTL/TLS is missing
- fixing sh2 flat support for Numato Mimasv2 (bug report sent to
elf2flt mailinglist)
- fixing mips32r6/mips64r6 support, help requested via eMail
to some Imgtec developers (unfortunately without response)
The initial submitter no longer working for Imgtec and mostly
works on ARM/AARCH64 now. Static bootup in Qemu works, ld.so
fails.
- Fixing broken ld.so support for NIOS2, adding NPTL/TLS support
- Adding support for more noMMU FDPIC targets (sh2, arm)
- there is an old SH uClibc branch I am trying to merge,
but I have an unresolved linking error
It might have something todo with missing trap handler inside
binutils/gcc, because the generated code adds an abort().
I have seen similar issue in Xtensa before Max added the GCC
trap handler.
If anyone want to help with some of the tasks or bugfixes, please
contact me!
In general I like to cleanup old code, remove config symbols which
does not save any significant code size, fix compiler warnings and
resolve any open test suite errors.
best regards
Waldemar
Hi,
I would like to simplify the process of adding new architectures and
this seems to be a simple cleanup and the relocations must not be
duplicated in elf.h and dl-debug.h.
Any comments? What do you think?
Signed-off-by: Waldemar Brodkorb <wbx(a)openadk.org>
---
docs/PORTING | 7 +---
ldso/ldso/arc/dl-debug.h | 83 ----------------------------------------
ldso/ldso/arc/elfinterp.c | 5 ---
ldso/ldso/arm/dl-debug.h | 46 ----------------------
ldso/ldso/arm/elfinterp.c | 5 ---
ldso/ldso/avr32/dl-debug.h | 45 ----------------------
ldso/ldso/avr32/elfinterp.c | 5 ---
ldso/ldso/bfin/dl-debug.h | 54 --------------------------
ldso/ldso/bfin/elfinterp.c | 4 --
ldso/ldso/c6x/dl-debug.h | 49 ------------------------
ldso/ldso/c6x/elfinterp.c | 4 --
ldso/ldso/cris/dl-debug.h | 42 --------------------
ldso/ldso/cris/elfinterp.c | 6 ---
ldso/ldso/dl-debug.c | 21 +---------
ldso/ldso/frv/dl-debug.h | 29 --------------
ldso/ldso/frv/elfinterp.c | 4 --
ldso/ldso/i386/dl-debug.h | 36 -----------------
ldso/ldso/i386/elfinterp.c | 7 ----
ldso/ldso/m68k/dl-debug.h | 42 --------------------
ldso/ldso/m68k/elfinterp.c | 6 ---
ldso/ldso/metag/dl-debug.h | 33 ----------------
ldso/ldso/metag/elfinterp.c | 6 ---
ldso/ldso/microblaze/dl-debug.h | 62 ------------------------------
ldso/ldso/microblaze/elfinterp.c | 6 ---
ldso/ldso/mips/dl-debug.h | 54 --------------------------
ldso/ldso/mips/elfinterp.c | 5 ---
ldso/ldso/nds32/dl-debug.h | 25 ------------
ldso/ldso/nds32/elfinterp.c | 4 --
ldso/ldso/nios2/dl-debug.h | 18 ---------
ldso/ldso/nios2/elfinterp.c | 5 ---
ldso/ldso/or1k/dl-debug.h | 53 -------------------------
ldso/ldso/or1k/elfinterp.c | 6 ---
ldso/ldso/powerpc/dl-debug.h | 44 ---------------------
ldso/ldso/powerpc/elfinterp.c | 8 ----
ldso/ldso/sh/dl-debug.h | 43 ---------------------
ldso/ldso/sh/elfinterp.c | 5 ---
ldso/ldso/sparc/dl-debug.h | 40 -------------------
ldso/ldso/sparc/elfinterp.c | 6 ---
ldso/ldso/x86_64/dl-debug.h | 39 -------------------
ldso/ldso/x86_64/elfinterp.c | 6 ---
ldso/ldso/xtensa/dl-debug.h | 38 ------------------
ldso/ldso/xtensa/elfinterp.c | 6 ---
42 files changed, 3 insertions(+), 1009 deletions(-)
delete mode 100644 ldso/ldso/arc/dl-debug.h
delete mode 100644 ldso/ldso/arm/dl-debug.h
delete mode 100644 ldso/ldso/avr32/dl-debug.h
delete mode 100644 ldso/ldso/bfin/dl-debug.h
delete mode 100644 ldso/ldso/c6x/dl-debug.h
delete mode 100644 ldso/ldso/cris/dl-debug.h
delete mode 100644 ldso/ldso/frv/dl-debug.h
delete mode 100644 ldso/ldso/i386/dl-debug.h
delete mode 100644 ldso/ldso/m68k/dl-debug.h
delete mode 100644 ldso/ldso/metag/dl-debug.h
delete mode 100644 ldso/ldso/microblaze/dl-debug.h
delete mode 100644 ldso/ldso/mips/dl-debug.h
delete mode 100644 ldso/ldso/nds32/dl-debug.h
delete mode 100644 ldso/ldso/nios2/dl-debug.h
delete mode 100644 ldso/ldso/or1k/dl-debug.h
delete mode 100644 ldso/ldso/powerpc/dl-debug.h
delete mode 100644 ldso/ldso/sh/dl-debug.h
delete mode 100644 ldso/ldso/sparc/dl-debug.h
delete mode 100644 ldso/ldso/x86_64/dl-debug.h
delete mode 100644 ldso/ldso/xtensa/dl-debug.h
diff --git a/docs/PORTING b/docs/PORTING
index d04f3b4..3d9682c 100644
--- a/docs/PORTING
+++ b/docs/PORTING
@@ -72,12 +72,7 @@ TODO: nptl / linuxthreads / linuxthreads.old
- enable ldso/shared options in your extra/Configs/Config.ARCH file
- you will need to create the following files in ldso/ldso/ARCH/
- dl-debug.h dl-startup.h dl-syscalls.h dl-sysdep.h elfinterp.c resolve.S
-
-- dl-debug.h: define string versions of all the relocations of your arch in the
- _dl_reltypes_tab array ... the index should match the actual reloc type, so
- if the value of say R_X86_64_PC16 is 13, then "R_X86_64_PC16" better be at
- index 13 of the array
+ dl-startup.h dl-syscalls.h dl-sysdep.h elfinterp.c resolve.S
- dl-startup.h:
- define the _start function which should call _dl_start which takes just one
diff --git a/ldso/ldso/arc/dl-debug.h b/ldso/ldso/arc/dl-debug.h
deleted file mode 100644
index 6573e54..0000000
--- a/ldso/ldso/arc/dl-debug.h
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com)
- *
- * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball.
- */
-static const char *_dl_reltypes_tab[] =
-{
- "R_ARC_NONE", /* 0 */
- "R_ARC_8",
- "R_ARC_16",
- "R_ARC_24",
- "R_ARC_32",
- "R_ARC_B26", /* 5 */
- "R_ARC_B22_PCREL",
- "R_ARC_H30",
- "R_ARC_N8",
- "R_ARC_N16",
- "R_ARC_N24", /* 10 */
- "R_ARC_N32",
- "R_ARC_SDA",
- "R_ARC_SECTOFF",
- "R_ARC_S21H_PCREL",
- "R_ARC_S21W_PCREL", /* 15 */
- "R_ARC_S25H_PCREL",
- "R_ARC_S25W_PCREL",
- "R_ARC_SDA32",
- "R_ARC_SDA_LDST",
- "R_ARC_SDA_LDST1", /* 20 */
- "R_ARC_SDA_LDST2",
- "R_ARC_SDA16_LD",
- "R_ARC_SDA16_LD1",
- "R_ARC_SDA16_LD2",
- "R_ARC_S13_PCREL", /* 25 */
- "R_ARC_W",
- "R_ARC_32_ME",
- "R_ARC_N32_ME",
- "R_ARC_SECTOFF_ME",
- "R_ARC_SDA32_ME", /* 30 */
- "R_ARC_W_ME",
- "R_ARC_H30_ME",
- "R_ARC_SECTOFF_U8",
- "R_ARC_SECTOFF_S9",
- "R_AC_SECTOFF_U8", /* 35 */
- "R_AC_SECTOFF_U8_1",
- "R_AC_SECTOFF_U8_2",
- "R_AC_SECTOFF_S9",
- "R_AC_SECTOFF_S9_1",
- "R_AC_SECTOFF_S9_2", /* 40 */
- "R_ARC_SECTOFF_ME_1",
- "R_ARC_SECTOFF_ME_2",
- "R_ARC_SECTOFF_1",
- "R_ARC_SECTOFF_2",
- "", /* 45 */
- "",
- "",
- "",
- "",
- "R_ARC_PC32", /* 50 */
- "R_ARC_GOTPC32",
- "R_ARC_PLT32",
- "R_ARC_COPY",
- "R_ARC_GLOB_DAT",
- "R_ARC_JMP_SLOT", /* 55 */
- "R_ARC_RELATIVE",
- "R_ARC_GOTOFF",
- "R_ARC_GOTPC",
- "R_ARC_GOT32",
- "", /* 60 */
- "",
- "",
- "",
- "",
- "", /* 65 */
- "R_ARC_TLS_DTPMOD",
- "R_ARC_TLS_DTPOFF",
- "R_ARC_TLS_TPOFF",
- "R_ARC_TLS_GD_GOT",
- "R_ARC_TLS_GD_LD", /* 70 */
- "R_ARC_TLS_GD_CALL",
- "R_ARC_TLS_IE_GOT",
- "",
- "",
-};
diff --git a/ldso/ldso/arc/elfinterp.c b/ldso/ldso/arc/elfinterp.c
index 2f0cf7f..1b5b651 100644
--- a/ldso/ldso/arc/elfinterp.c
+++ b/ldso/ldso/arc/elfinterp.c
@@ -262,13 +262,8 @@ static int _dl_parse(struct elf_resolve *tpnt, struct r_scope_elem *scope,
if (unlikely(res != 0)) {
if (res < 0) {
int reloc_type = ELF_R_TYPE(rpnt->r_info);
-#if defined __SUPPORT_LD_DEBUG__
- _dl_dprintf(2, "can't handle reloc type %s\n ",
- _dl_reltypes(reloc_type));
-#else
_dl_dprintf(2, "can't handle reloc type %x\n",
reloc_type);
-#endif
_dl_exit(-res);
} else {
_dl_dprintf(2, "can't resolve symbol\n");
diff --git a/ldso/ldso/arm/dl-debug.h b/ldso/ldso/arm/dl-debug.h
deleted file mode 100644
index af14eca..0000000
--- a/ldso/ldso/arm/dl-debug.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/* vi: set sw=4 ts=4: */
-/* ARM ELF shared library loader suppport
- *
- * Copyright (C) 2001-2004 Erik Andersen
- *
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. The name of the above contributors may not be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-static const char * const _dl_reltypes_tab[] =
-{
- [0] "R_ARM_NONE", "R_ARM_PC24", "R_ARM_ABS32", "R_ARM_REL32",
- [4] "R_ARM_PC13", "R_ARM_ABS16", "R_ARM_ABS12", "R_ARM_THM_ABS5",
- [8] "R_ARM_ABS8", "R_ARM_SBREL32","R_ARM_THM_PC22", "R_ARM_THM_PC8",
- [12] "R_ARM_AMP_VCALL9", "R_ARM_SWI24", "R_ARM_THM_SWI8", "R_ARM_XPC25",
- [16] "R_ARM_THM_XPC22", "R_ARM_TLS_DTPMOD32", "R_ARM_TLS_DTPOFF32", "R_ARM_TLS_TPOFF32",
- [20] "R_ARM_COPY", "R_ARM_GLOB_DAT","R_ARM_JUMP_SLOT", "R_ARM_RELATIVE",
- [24] "R_ARM_GOTOFF", "R_ARM_GOTPC", "R_ARM_GOT32", "R_ARM_PLT32",
- [32] "R_ARM_ALU_PCREL_7_0","R_ARM_ALU_PCREL_15_8","R_ARM_ALU_PCREL_23_15","R_ARM_LDR_SBREL_11_0",
- [36] "R_ARM_ALU_SBREL_19_12","R_ARM_ALU_SBREL_27_20",
- [100] "R_ARM_GNU_VTENTRY","R_ARM_GNU_VTINHERIT","R_ARM_THM_PC11","R_ARM_THM_PC9",
- [104] "R_ARM_TLS_GD32","R_ARM_TLS_LDM32","R_ARM_TLS_LDO32","R_ARM_TLS_IE32",
- [108] "R_ARM_TLS_LE32","R_ARM_TLS_LDO12","R_ARM_TLS_LE12","R_ARM_TLS_IE12GP",
- [249] "R_ARM_RXPC25", "R_ARM_RSBREL32", "R_ARM_THM_RPC22", "R_ARM_RREL32",
- [253] "R_ARM_RABS22", "R_ARM_RPC24", "R_ARM_RBASE",
-};
diff --git a/ldso/ldso/arm/elfinterp.c b/ldso/ldso/arm/elfinterp.c
index 2043263..11866a4 100644
--- a/ldso/ldso/arm/elfinterp.c
+++ b/ldso/ldso/arm/elfinterp.c
@@ -1,4 +1,3 @@
-/* vi: set sw=4 ts=4: */
/* ARM ELF shared library loader suppport
*
* Copyright (C) 2001-2004 Erik Andersen
@@ -138,11 +137,7 @@ _dl_parse(struct elf_resolve *tpnt, struct r_scope_elem *scope,
if (unlikely(res <0))
{
int reloc_type = ELF_R_TYPE(rpnt->r_info);
-#if defined (__SUPPORT_LD_DEBUG__)
- _dl_dprintf(2, "can't handle reloc type %s\n ", _dl_reltypes(reloc_type));
-#else
_dl_dprintf(2, "can't handle reloc type %x\n", reloc_type);
-#endif
_dl_exit(-res);
}
if (unlikely(res >0))
diff --git a/ldso/ldso/avr32/dl-debug.h b/ldso/ldso/avr32/dl-debug.h
deleted file mode 100644
index 44b0c01..0000000
--- a/ldso/ldso/avr32/dl-debug.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * AVR32 ELF shared libary loader support
- *
- * Copyright (C) 2005-2007 Atmel Corporation
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. The name of the above contributors may not be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-static const char * const _dl_reltypes_tab[] = {
- "R_AVR32_NONE",
- "R_AVR32_32", "R_AVR32_16", "R_AVR32_8",
- "R_AVR32_32_PCREL", "R_AVR32_16_PCREL", "R_AVR32_8_PCREL",
- "R_AVR32_DIFF32", "R_AVR32_DIFF16", "R_AVR32_DIFF8",
- "R_AVR32_GOT32", "R_AVR32_GOT16", "R_AVR32_GOT8",
- "R_AVR32_21S", "R_AVR32_16U", "R_AVR32_16S", "R_AVR32_8S", "R_AVR32_8S_EXT",
- "R_AVR32_22H_PCREL", "R_AVR32_18W_PCREL", "R_AVR32_16B_PCREL",
- "R_AVR32_16N_PCREL", "R_AVR32_14UW_PCREL", "R_AVR32_11H_PCREL",
- "R_AVR32_10UW_PCREL", "R_AVR32_9H_PCREL", "R_AVR32_9UW_PCREL",
- "R_AVR32_HI16", "R_AVR32_LO16",
- "R_AVR32_GOTPC", "R_AVR32_GOTCALL", "R_AVR32_LDA_GOT",
- "R_AVR32_GOT21S", "R_AVR32_GOT18SW", "R_AVR32_GOT16S", "R_AVR32_GOT7UW",
- "R_AVR32_32_CPENT", "R_AVR32_CPCALL", "R_AVR32_16_CP", "R_AVR32_9W_CP",
- "R_AVR32_RELATIVE", "R_AVR32_GLOB_DAT", "R_AVR32_JMP_SLOT",
- "R_AVR32_ALIGN",
-};
diff --git a/ldso/ldso/avr32/elfinterp.c b/ldso/ldso/avr32/elfinterp.c
index 17f34fa..9bae4d9 100644
--- a/ldso/ldso/avr32/elfinterp.c
+++ b/ldso/ldso/avr32/elfinterp.c
@@ -99,13 +99,8 @@ _dl_parse(struct elf_resolve *tpnt, struct r_scope_elem *scope,
if (res < 0) {
int reloc_type = ELF_R_TYPE(rpnt->r_info);
-#if defined(__SUPPORT_LD_DEBUG__)
- _dl_dprintf(2, "can't handle reloc type %s\n",
- _dl_reltypes(reloc_type));
-#else
_dl_dprintf(2, "can't handle reloc type %x\n",
reloc_type);
-#endif
_dl_exit(-res);
} else {
_dl_dprintf(2, "can't resolve symbol\n");
diff --git a/ldso/ldso/bfin/dl-debug.h b/ldso/ldso/bfin/dl-debug.h
deleted file mode 100644
index 6952b61..0000000
--- a/ldso/ldso/bfin/dl-debug.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/* vi: set sw=4 ts=4: */
-/* Blackfin ELF shared library loader suppport
- *
- * Copyright (c) 1994-2000 Eric Youngdale, Peter MacDonald,
- * David Engel, Hongjiu Lu and Mitch D'Souza
- * Copyright (C) 2001-2004 Erik Andersen
- *
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. The name of the above contributors may not be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-static const char * const _dl_reltypes_tab[] =
-{
- [0] "R_BFIN_UNUSED0", "R_BFIN_PCREL5M2",
- [2] "R_BFIN_UNUSED1", "R_BFIN_PCREL10",
- [4] "R_BFIN_PCREL12_JUMP", "R_BFIN_RIMM16",
- [6] "R_BFIN_LUIMM16", "R_BFIN_HUIMM16",
- [8] "R_BFIN_PCREL12_JUMP_S","R_BFIN_PCREL24_JUMP_X",
- [10] "R_BFIN_PCREL24", "R_BFIN_UNUSEDB",
- [12] "R_BFIN_UNUSEDC", "R_BFIN_PCREL24_JUMP_L",
- [14] "R_BFIN_PCREL24_CALL_X","R_BFIN_var_eq_symb",
- [16] "R_BFIN_BYTE_DATA", "R_BFIN_BYTE2_DATA", "R_BFIN_BYTE4_DATA",
- [19] "R_BFIN_PCREL11",
-
- [20] "R_BFIN_GOT17M4", "R_BFIN_GOTHI", "R_BFIN_GOTLO",
- [23] "R_BFIN_FUNCDESC",
- [24] "R_BFIN_FUNCDESC_GOT17M4", "R_BFIN_FUNCDESC_GOTHI", "R_BFIN_FUNCDESC_GOTLO",
- [27] "R_BFIN_FUNCDESC_VALUE", "R_BFIN_FUNCDESC_GOTOFF17M4",
- [29] "R_BFIN_FUNCDESC_GOTOFFHI", "R_BFIN_FUNCDESC_GOTOFFLO",
- [31] "R_BFIN_GOTOFF17M4", "R_BFIN_GOTOFFHI", "R_BFIN_GOTOFFLO",
-#if 0
- [200] "R_BFIN_GNU_VTINHERIT", "R_BFIN_GNU_VTENTRY"
-#endif
-};
diff --git a/ldso/ldso/bfin/elfinterp.c b/ldso/ldso/bfin/elfinterp.c
index 4e1c1c7..d4cb0f1 100644
--- a/ldso/ldso/bfin/elfinterp.c
+++ b/ldso/ldso/bfin/elfinterp.c
@@ -136,11 +136,7 @@ _dl_parse(struct elf_resolve *tpnt, struct r_scope_elem *scope,
if (res <0) {
int reloc_type = ELF_R_TYPE(rpnt->r_info);
-#if defined (__SUPPORT_LD_DEBUG__)
- _dl_dprintf(2, "can't handle reloc type %s\n ", _dl_reltypes(reloc_type));
-#else
_dl_dprintf(2, "can't handle reloc type %x\n", reloc_type);
-#endif
_dl_exit(-res);
} else if (res >0) {
_dl_dprintf(2, "can't resolve symbol\n");
diff --git a/ldso/ldso/c6x/dl-debug.h b/ldso/ldso/c6x/dl-debug.h
deleted file mode 100644
index d4915bf..0000000
--- a/ldso/ldso/c6x/dl-debug.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/* C6X DSBT ELF shared library loader suppport.
- *
- * Copyright (C) 2010 Texas Instruments Incorporated
- * Contributed by Mark Salter <msalter(a)redhat.com>
- *
- * All rights reserved.
- *
- * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- */
-
-static const char * const _dl_reltypes_tab[] =
-{
- "R_C6000_NONE", /* 0 */
- "R_C6000_ABS32",
- "R_C6000_ABS16",
- "R_C6000_ABS8",
- "R_C6000_PCR_S21",
- "R_C6000_PCR_S12", /* 5 */
- "R_C6000_PCR_S10",
- "R_C6000_PCR_S7",
- "R_C6000_ABS_S16",
- "R_C6000_ABS_L16",
- "R_C6000_ABS_H16", /* 10 */
- "R_C6000_SBR_U15_B",
- "R_C6000_SBR_U15_H",
- "R_C6000_SBR_U15_W",
- "R_C6000_SBR_S16",
- "R_C6000_SBR_L16_B", /* 15 */
- "R_C6000_SBR_L16_H",
- "R_C6000_SBR_L16_W",
- "R_C6000_SBR_H16_B",
- "R_C6000_SBR_H16_H",
- "R_C6000_SBR_H16_W", /* 20 */
- "R_C6000_SBR_GOT_U15_W",
- "R_C6000_SBR_GOT_L16_W",
- "R_C6000_SBR_GOT_H16_W",
- "R_C6000_DSBT_INDEX",
- "R_C6000_PREL31", /* 25 */
- "R_C6000_COPY",
- "R_C6000_JUMP_SLOT",
- "R_C6000_SBR_GOT32",
- "R_C6000_PCR_H16",
- "R_C6000_PCR_L16", /* 30 */
-#if 0
- "R_C6000_ALIGN", /* 253 */
- "R_C6000_FPHEAD", /* 254 */
- "R_C6000_NOCMP", /* 255 */
-#endif
-};
diff --git a/ldso/ldso/c6x/elfinterp.c b/ldso/ldso/c6x/elfinterp.c
index f0e05b9..5e265ed 100644
--- a/ldso/ldso/c6x/elfinterp.c
+++ b/ldso/ldso/c6x/elfinterp.c
@@ -130,11 +130,7 @@ _dl_parse(struct elf_resolve *tpnt, struct r_scope_elem *scope,
if (res <0) {
int reloc_type = ELF_R_TYPE(rpnt->r_info);
-#if defined (__SUPPORT_LD_DEBUG__)
- _dl_dprintf(2, "can't handle reloc type %s\n ", _dl_reltypes(reloc_type));
-#else
_dl_dprintf(2, "can't handle reloc type %x\n", reloc_type);
-#endif
_dl_exit(-res);
} else if (res >0) {
_dl_dprintf(2, "can't resolve symbol\n");
diff --git a/ldso/ldso/cris/dl-debug.h b/ldso/ldso/cris/dl-debug.h
deleted file mode 100644
index dcd23ed..0000000
--- a/ldso/ldso/cris/dl-debug.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * CRIS ELF shared library loader support.
- *
- * Program to load an elf binary on a linux system, and run it.
- * References to symbols in sharable libraries can be resolved
- * by either an ELF sharable library or a linux style of shared
- * library.
- *
- * Copyright (C) 2002-2004, Axis Communications AB
- * All rights reserved
- *
- * Author: Tobias Anderberg, <tobiasa(a)axis.com>
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. The name of the above contributors may not be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-static const char * const _dl_reltypes_tab[] = {
- [0] "R_CRIS_NONE", "R_CRIS_8", "R_CRIS_16", "R_CRIS_32",
- [4] "R_CRIS_8_PCREL", "R_CRIS_16_PCREL", "R_CRIS_32_PCREL", "R_CRIS_GNU_VTINHERIT",
- [8] "R_CRIS_GNU_VTENTRY", "R_CRIS_COPY", "R_CRIS_GLOB_DAT", "R_CRIS_JUMP_SLOT",
- [16] "R_CRIS_RELATIVE", "R_CRIS_16_GOT", "R_CRIS_32_GOT", "R_CRIS_16_GOTPLT",
- [32] "R_CRIS_32_GOTPLT", "R_CRIS_32_GOTREL", "R_CRIS_32_PLT_GOTREL", "R_CRIS_32_PLT_PCREL",
-};
diff --git a/ldso/ldso/cris/elfinterp.c b/ldso/ldso/cris/elfinterp.c
index 5ad3025..5ab2e4f 100644
--- a/ldso/ldso/cris/elfinterp.c
+++ b/ldso/ldso/cris/elfinterp.c
@@ -131,14 +131,8 @@ _dl_parse(struct elf_resolve *tpnt, struct r_scope_elem *scope,
if (unlikely(res < 0)) {
int reloc_type = ELF_R_TYPE(rpnt->r_info);
-
-#if defined (__SUPPORT_LD_DEBUG__)
- _dl_dprintf(2, "can't handle reloc type %s\n",
- _dl_reltypes(reloc_type));
-#else
_dl_dprintf(2, "can't handle reloc type %x\n",
reloc_type);
-#endif
_dl_exit(-res);
} else if (unlikely(res > 0)) {
_dl_dprintf(2, "can't resolve symbol\n");
diff --git a/ldso/ldso/dl-debug.c b/ldso/ldso/dl-debug.c
index 88a4893..4767e07 100644
--- a/ldso/ldso/dl-debug.c
+++ b/ldso/ldso/dl-debug.c
@@ -1,4 +1,3 @@
-/* vi: set sw=4 ts=4: */
/* common debug code for ELF shared library loader
*
* Copyright (c) 1994-2000 Eric Youngdale, Peter MacDonald,
@@ -41,22 +40,6 @@
#if defined (__SUPPORT_LD_DEBUG__)
-/* include the arch-specific _dl_reltypes_tab */
-#include "dl-debug.h"
-
-static const char *_dl_reltypes(int type)
-{
- static char buf[50];
- const char *str;
- int tabsize;
-
- tabsize = (int)(sizeof(_dl_reltypes_tab) / sizeof(_dl_reltypes_tab[0]));
-
- if (type >= tabsize || (str = _dl_reltypes_tab[type]) == NULL)
- str = _dl_simple_ltoa(buf, (unsigned long)type);
-
- return str;
-}
static void debug_sym(ElfW(Sym) *symtab, char *strtab, int symtab_index)
{
if (!_dl_debug_symbols || !symtab_index)
@@ -89,8 +72,8 @@ static void debug_reloc(ElfW(Sym) *symtab, char *strtab, ELF_RELOC *rpnt)
_dl_dprintf(_dl_debug_file, "\n%s\n\t", sym);
}
- _dl_dprintf(_dl_debug_file, "%s\toffset=%x",
- _dl_reltypes(ELF_R_TYPE(rpnt->r_info)),
+ _dl_dprintf(_dl_debug_file, "%x\toffset=%x",
+ ELF_R_TYPE(rpnt->r_info),
rpnt->r_offset);
#ifdef ELF_USES_RELOCA
_dl_dprintf(_dl_debug_file, "\taddend=%x", rpnt->r_addend);
diff --git a/ldso/ldso/frv/dl-debug.h b/ldso/ldso/frv/dl-debug.h
deleted file mode 100644
index 65c2386..0000000
--- a/ldso/ldso/frv/dl-debug.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/* FR-V FDPIC ELF shared library loader suppport
- * Copyright (C) 2003, 2004 Red Hat, Inc.
- * Contributed by Alexandre Oliva <aoliva(a)redhat.com>
- * Lots of code copied from ../i386/elfinterp.c, so:
- * Copyright (c) 1994-2000 Eric Youngdale, Peter MacDonald,
- * David Engel, Hongjiu Lu and Mitch D'Souza
- * Copyright (C) 2001-2002, Erik Andersen
- * All rights reserved.
- *
- * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- */
-
-static const char * const _dl_reltypes_tab[] =
-{
- [0] "R_FRV_NONE", "R_FRV_32",
- [2] "R_FRV_LABEL16", "R_FRV_LABEL24",
- [4] "R_FRV_LO16", "R_FRV_HI16",
- [6] "R_FRV_GPREL12", "R_FRV_GPRELU12",
- [8] "R_FRV_GPREL32", "R_FRV_GPRELHI", "R_FRV_GPRELLO",
- [11] "R_FRV_GOT12", "R_FRV_GOTHI", "R_FRV_GOTLO",
- [14] "R_FRV_FUNCDESC",
- [15] "R_FRV_FUNCDESC_GOT12", "R_FRV_FUNCDESC_GOTHI", "R_FRV_FUNCDESC_GOTLO",
- [18] "R_FRV_FUNCDESC_VALUE", "R_FRV_FUNCDESC_GOTOFF12",
- [20] "R_FRV_FUNCDESC_GOTOFFHI", "R_FRV_FUNCDESC_GOTOFFLO",
- [22] "R_FRV_GOTOFF12", "R_FRV_GOTOFFHI", "R_FRV_GOTOFFLO",
-#if 0
- [200] "R_FRV_GNU_VTINHERIT", "R_FRV_GNU_VTENTRY"
-#endif
-};
diff --git a/ldso/ldso/frv/elfinterp.c b/ldso/ldso/frv/elfinterp.c
index 2c954b3..96e22a9 100644
--- a/ldso/ldso/frv/elfinterp.c
+++ b/ldso/ldso/frv/elfinterp.c
@@ -125,11 +125,7 @@ _dl_parse(struct elf_resolve *tpnt, struct r_scope_elem *scope,
if (res <0)
{
int reloc_type = ELF_R_TYPE(rpnt->r_info);
-#if defined (__SUPPORT_LD_DEBUG__)
- _dl_dprintf(2, "can't handle reloc type %s\n ", _dl_reltypes(reloc_type));
-#else
_dl_dprintf(2, "can't handle reloc type %x\n", reloc_type);
-#endif
_dl_exit(-res);
}
else if (res >0)
diff --git a/ldso/ldso/i386/dl-debug.h b/ldso/ldso/i386/dl-debug.h
deleted file mode 100644
index 82baf1f..0000000
--- a/ldso/ldso/i386/dl-debug.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/* vi: set sw=4 ts=4: */
-/* i386 ELF shared library loader suppport
- *
- * Copyright (c) 1994-2000 Eric Youngdale, Peter MacDonald,
- * David Engel, Hongjiu Lu and Mitch D'Souza
- * Copyright (C) 2001-2004 Erik Andersen
- *
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. The name of the above contributors may not be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-static const char * const _dl_reltypes_tab[] = {
- [0] "R_386_NONE", "R_386_32", "R_386_PC32", "R_386_GOT32",
- [4] "R_386_PLT32", "R_386_COPY", "R_386_GLOB_DAT", "R_386_JMP_SLOT",
- [8] "R_386_RELATIVE", "R_386_GOTOFF", "R_386_GOTPC",
-};
diff --git a/ldso/ldso/i386/elfinterp.c b/ldso/ldso/i386/elfinterp.c
index aadb00a..b2fb182 100644
--- a/ldso/ldso/i386/elfinterp.c
+++ b/ldso/ldso/i386/elfinterp.c
@@ -1,4 +1,3 @@
-/* vi: set sw=4 ts=4: */
/* i386 ELF shared library loader suppport
*
* Copyright (c) 1994-2000 Eric Youngdale, Peter MacDonald,
@@ -137,14 +136,8 @@ _dl_parse(struct elf_resolve *tpnt, struct r_scope_elem *scope,
if (unlikely(res < 0)) {
int reloc_type = ELF_R_TYPE(rpnt->r_info);
-
-#if defined (__SUPPORT_LD_DEBUG__)
- _dl_dprintf(2, "can't handle reloc type '%s' in lib '%s'\n",
- _dl_reltypes(reloc_type), tpnt->libname);
-#else
_dl_dprintf(2, "can't handle reloc type %x in lib '%s'\n",
reloc_type, tpnt->libname);
-#endif
return res;
} else if (unlikely(res > 0)) {
_dl_dprintf(2, "can't resolve symbol in lib '%s'.\n", tpnt->libname);
diff --git a/ldso/ldso/m68k/dl-debug.h b/ldso/ldso/m68k/dl-debug.h
deleted file mode 100644
index 71b513a..0000000
--- a/ldso/ldso/m68k/dl-debug.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/* vi: set sw=4 ts=4: */
-/* m68k ELF shared library loader suppport
- *
- * Copyright (c) 1994-2000 Eric Youngdale, Peter MacDonald,
- * David Engel, Hongjiu Lu and Mitch D'Souza
- * Adapted to ELF/68k by Andreas Schwab.
- *
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. The name of the above contributors may not be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-static const char * const _dl_reltypes_tab[] = {
- [0] "R_68K_NONE",
- [1] "R_68K_32", "R_68K_16", "R_68K_8",
- [4] "R_68K_PC32", "R_68K_PC16", "R_68K_PC8",
- [7] "R_68K_GOT32", "R_68K_GOT16", "R_68K_GOT8",
- [10] "R_68K_GOT32O", "R_68K_GOT16O", "R_68K_GOT8O",
- [13] "R_68K_PLT32", "R_68K_PLT16", "R_68K_PLT8",
- [16] "R_68K_PLT32O", "R_68K_PLT16O", "R_68K_PLT8O",
- [19] "R_68K_COPY", "R_68K_GLOB_DAT", "R_68K_JMP_SLOT", "R_68K_RELATIVE",
- [23] "R_68K_NUM"
-};
diff --git a/ldso/ldso/m68k/elfinterp.c b/ldso/ldso/m68k/elfinterp.c
index fd7fe85..899fa95 100644
--- a/ldso/ldso/m68k/elfinterp.c
+++ b/ldso/ldso/m68k/elfinterp.c
@@ -1,4 +1,3 @@
-/* vi: set sw=4 ts=4: */
/* m68k ELF shared library loader suppport
*
* Copyright (c) 1994-2000 Eric Youngdale, Peter MacDonald,
@@ -133,13 +132,8 @@ _dl_parse(struct elf_resolve *tpnt, struct r_scope_elem *scope,
if (unlikely(res < 0)) {
int reloc_type = ELF_R_TYPE(rpnt->r_info);
-
_dl_dprintf(2, "can't handle reloc type "
-#if defined (__SUPPORT_LD_DEBUG__)
- "%s\n", _dl_reltypes(reloc_type));
-#else
"%x\n", reloc_type);
-#endif
_dl_exit(-res);
} else if (unlikely(res > 0)) {
_dl_dprintf(2, "can't resolve symbol\n");
diff --git a/ldso/ldso/metag/dl-debug.h b/ldso/ldso/metag/dl-debug.h
deleted file mode 100644
index 46c257c..0000000
--- a/ldso/ldso/metag/dl-debug.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Meta ELF shared library loader support.
- *
- * Program to load an elf binary on a linux system, and run it.
- * References to symbols in sharable libraries can be resolved
- * by either an ELF sharable library or a linux style of shared
- * library.
- *
- * Copyright (C) 2013, Imagination Technologies Ltd.
- *
- * Licensed under LGPL v2.1 or later, see the file COPYING.LIB in this tarball.
- */
-
-static const char *_dl_reltypes_tab[] = {
- [0] "R_METAG_HIADDR16", "R_METAG_LOADDR16", "R_METAG_ADDR32",
- [3] "R_METAG_NONE", "R_METAG_RELBRANCH", "R_METAG_GETSETOFF",
- [6] "R_METAG_REG32OP1", "R_METAG_REG32OP2", "R_METAG_REG32OP3",
- [9] "R_METAG_REG16OP1", "R_METAG_REG16OP2", "R_METAG_REG16OP3",
- [12] "R_METAG_REG32OP4", "R_METAG_HIOG", "R_METAG_LOOG",
- [30] "R_METAG_GNU_VTINHERIT", "R_METAG_GNU_VTENTRY",
- [32] "R_METAG_HI16_GOTOFF", "R_METAG_LO16_GOTOFF",
- [34] "R_METAG_GETSET_GOTOFF", "R_METAG_GETSET_GOT",
- [36] "R_METAG_HI16_GOTPC", "R_METAG_LO16_GOTPC",
- [38] "R_METAG_HI16_PLT", "R_METAG_LO16_PLT",
- [40] "R_METAG_RELBRANCH_PLT", "R_METAG_GOTOFF",
- [42] "R_METAG_PLT", "R_METAG_COPY", "R_METAG_JMP_SLOT",
- [45] "R_METAG_RELATIVE", "R_METAG_GLOB_DAT", "R_METAG_TLS_GD",
- [48] "R_METAG_TLS_LDM", "R_METAG_TLS_LDO_HI16", "R_METAG_TLS_LDO_LO16",
- [51] "R_METAG_TLS_LDO", "R_METAG_TLS_IE", "R_METAG_TLS_IENONPIC",
- [54] "R_METAG_TLS_IENONPIC_HI16", "R_METAG_TLS_IENONPIC_LO16",
- [56] "R_METAG_TLS_TPOFF", "R_METAG_TLS_DTPMOD", "R_METAG_TLS_DTPOFF",
- [59] "R_METAG_TLS_LE", "R_METAG_TLS_LE_HI16", "R_METAG_TLS_LE_LO16"
-};
diff --git a/ldso/ldso/metag/elfinterp.c b/ldso/ldso/metag/elfinterp.c
index e0f9817..ef02e8c 100644
--- a/ldso/ldso/metag/elfinterp.c
+++ b/ldso/ldso/metag/elfinterp.c
@@ -135,14 +135,8 @@ _dl_parse(struct elf_resolve *tpnt, struct r_scope_elem *scope,
if (unlikely(res < 0)) {
int reloc_type = ELF_R_TYPE(rpnt->r_info);
-
-#if defined (__SUPPORT_LD_DEBUG__)
- _dl_dprintf(2, "can't handle reloc type %s\n",
- _dl_reltypes(reloc_type));
-#else
_dl_dprintf(2, "can't handle reloc type %x\n",
reloc_type);
-#endif
_dl_exit(-res);
} else if (unlikely(res > 0)) {
_dl_dprintf(2, "can't resolve symbol\n");
diff --git a/ldso/ldso/microblaze/dl-debug.h b/ldso/ldso/microblaze/dl-debug.h
deleted file mode 100644
index 30b27bb..0000000
--- a/ldso/ldso/microblaze/dl-debug.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/* vi: set sw=4 ts=4: */
-/* microblaze shared library loader suppport
- *
- * Copyright (C) 2011 Ryan Flux
- *
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. The name of the above contributors may not be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-static const char * const _dl_reltypes_tab[] =
- {
- "R_MICROBLAZE_NONE",
- "R_MICROBLAZE_32",
- "R_MICROBLAZE_32_PCREL",
- "R_MICROBLAZE_64_PCREL",
- "R_MICROBLAZE_32_PCREL_LO",
- "R_MICROBLAZE_64",
- "R_MICROBLAZE_32_LO",
- "R_MICROBLAZE_SRO32",
- "R_MICROBLAZE_SRW32",
- "R_MICROBLAZE_64_NONE",
- "R_MICROBLAZE_32_SYM_OP_SYM",
- "R_MICROBLAZE_GNU_VTINHERIT",
- "R_MICROBLAZE_GNU_VTENTRY",
- "R_MICROBLAZE_GOTPC_64",
- "R_MICROBLAZE_GOT_64",
- "R_MICROBLAZE_PLT_64",
- "R_MICROBLAZE_REL",
- "R_MICROBLAZE_JUMP_SLOT",
- "R_MICROBLAZE_GLOB_DAT",
- "R_MICROBLAZE_GOTOFF_64",
- "R_MICROBLAZE_GOTOFF_32",
- "R_MICROBLAZE_COPY",
- "R_MICROBLAZE_TLS",
- "R_MICROBLAZE_TLSGD",
- "R_MICROBLAZE_TLSLD",
- "R_MICROBLAZE_TLSDTPMOD32",
- "R_MICROBLAZE_TLSDTPREL32",
- "R_MICROBLAZE_TLSDTPREL64",
- "R_MICROBLAZE_TLSGOTTPREL32",
- "R_MICROBLAZE_TLSTPREL32",
- };
diff --git a/ldso/ldso/microblaze/elfinterp.c b/ldso/ldso/microblaze/elfinterp.c
index 33aef2f..9dd4a9a 100644
--- a/ldso/ldso/microblaze/elfinterp.c
+++ b/ldso/ldso/microblaze/elfinterp.c
@@ -1,4 +1,3 @@
-/* vi: set sw=4 ts=4: */
/* microblaze ELF shared library loader suppport
*
* Copyright (c) 1994-2000 Eric Youngdale, Peter MacDonald,
@@ -133,13 +132,8 @@ _dl_parse(struct elf_resolve *tpnt, struct r_scope_elem *scope,
if (unlikely(res < 0)) {
int reloc_type = ELF_R_TYPE(rpnt->r_info);
-
_dl_dprintf(2, "can't handle reloc type "
-#if defined (__SUPPORT_LD_DEBUG__)
- "%s\n", _dl_reltypes(reloc_type));
-#else
"%x\n", reloc_type);
-#endif
_dl_exit(-res);
} else if (unlikely(res > 0)) {
_dl_dprintf(2, "can't resolve symbol\n");
diff --git a/ldso/ldso/mips/dl-debug.h b/ldso/ldso/mips/dl-debug.h
deleted file mode 100644
index e71aaf7..0000000
--- a/ldso/ldso/mips/dl-debug.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/* vi: set sw=4 ts=4: */
-/* mips/mipsel ELF shared library loader suppport
- *
- Copyright (C) 2002, Steven J. Hill (sjhill(a)realitydiluted.com)
- *
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. The name of the above contributors may not be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-static const char * const _dl_reltypes_tab[] =
-{
- [0] "R_MIPS_NONE", "R_MIPS_16", "R_MIPS_32",
- [3] "R_MIPS_REL32", "R_MIPS_26", "R_MIPS_HI16",
- [6] "R_MIPS_LO16", "R_MIPS_GPREL16", "R_MIPS_LITERAL",
- [9] "R_MIPS_GOT16", "R_MIPS_PC16", "R_MIPS_CALL16",
- [12] "R_MIPS_GPREL32",
- [16] "R_MIPS_SHIFT5", "R_MIPS_SHIFT6", "R_MIPS_64",
- [19] "R_MIPS_GOT_DISP", "R_MIPS_GOT_PAGE", "R_MIPS_GOT_OFST",
- [22] "R_MIPS_GOT_HI16", "R_MIPS_GOT_LO16", "R_MIPS_SUB",
- [25] "R_MIPS_INSERT_A", "R_MIPS_INSERT_B", "R_MIPS_DELETE",
- [28] "R_MIPS_HIGHER", "R_MIPS_HIGHEST", "R_MIPS_CALL_HI16",
- [31] "R_MIPS_CALL_LO16", "R_MIPS_SCN_DISP", "R_MIPS_REL16",
- [34] "R_MIPS_ADD_IMMEDIATE", "R_MIPS_PJUMP", "R_MIPS_RELGOT",
- [37] "R_MIPS_JALR", "R_MIPS_TLS_DTPMOD32", "R_MIPS_TLS_DTPREL32",
- [40] "R_MIPS_TLS_DTPMOD64", "R_MIPS_TLS_DTPREL64", "R_MIPS_TLS_GD",
- [43] "R_MIPS_TLS_LDM", "R_MIPS_TLS_DTPREL_HI16",
- [45] "R_MIPS_TLS_DTPREL_LO16",
- [46] "R_MIPS_TLS_GOTTPREL", "R_MIPS_TLS_TPREL32", "R_MIPS_TLS_TPREL64",
- [49] "R_MIPS_TLS_TPREL_HI16",
- [50] "R_MIPS_TLS_TPREL_LO16",
- [51] "R_MIPS_GLOB_DAT",
- [126] "R_MIPS_COPY", "R_MIPS_JUMP_SLOT",
-
-};
diff --git a/ldso/ldso/mips/elfinterp.c b/ldso/ldso/mips/elfinterp.c
index 6310c77..8886db9 100644
--- a/ldso/ldso/mips/elfinterp.c
+++ b/ldso/ldso/mips/elfinterp.c
@@ -1,4 +1,3 @@
-/* vi: set sw=4 ts=4: */
/* mips/mipsel ELF shared library loader suppport
*
Copyright (C) 2002, Steven J. Hill (sjhill(a)realitydiluted.com)
@@ -305,11 +304,7 @@ int _dl_parse_relocation_information(struct dyn_elf *xpnt,
if (symtab_index)
_dl_dprintf(2, "symbol '%s': ", symname);
-#if defined (__SUPPORT_LD_DEBUG__)
- _dl_dprintf(2, "can't handle reloc type '%s' in lib '%s'\n", _dl_reltypes(reloc_type), tpnt->libname);
-#else
_dl_dprintf(2, "can't handle reloc type %x in lib '%s'\n", reloc_type, tpnt->libname);
-#endif
_dl_exit(1);
}
}
diff --git a/ldso/ldso/nds32/dl-debug.h b/ldso/ldso/nds32/dl-debug.h
deleted file mode 100644
index ef4c57d..0000000
--- a/ldso/ldso/nds32/dl-debug.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (C) 2016 Andes Technology, Inc.
- * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- */
-
-static const char *_dl_reltypes_tab[] =
-{
- [0] "R_NDS32_NONE", "R_NDS32_16", "R_NDS32_32", "R_NDS32_20",
- [4] "R_NDS32_9_PCREL", "R_NDS32_15_PCREL", "R_NDS32_17_PCREL", "R_NDS32_25_PCREL",
- [8] "R_NDS32_HI20", "R_NDS32_LO12S3", "R_NDS32_LO12S2", "R_NDS32_LO12S1",
- [12] "R_NDS32_LO12S0", "R_NDS32_SDA15S3", "R_NDS32_SDA15S2", "R_NDS32_SDA15S1",
- [16] "R_NDS32_SDA15S0", "R_NDS32_GNU_VTINHERIT", "R_NDS32_GNU_VTENTRY", "R_NDS32_16_RELA",
- [20] "R_NDS32_32_RELA" "R_NDS32_20_RELA", "R_NDS32_9_PCREL_RELA", "R_NDS32_15_PCREL_RELA",
- [24] "R_NDS32_17_PCREL_RELA", "R_NDS32_25_PCREL_RELA", "R_NDS32_HI20_RELA", "R_NDS32_LO12S3_RELA",
- [28] "R_NDS32_LO12S2_RELA", "R_NDS32_LO12S1_RELA", "R_NDS32_LO12S0_RELA", "R_NDS32_SDA15S3_RELA",
- [32] "R_NDS32_SDA15S2_RELA", "R_NDS32_SDA15S1_RELA", "R_NDS32_SDA15S0_RELA", "R_NDS32_RELA_GNU_VTINHERIT",
- [36] "R_NDS32_RELA_GNU_VTENTRY", "R_NDS32_GOT20", "R_NDS32_25_PLTREL", "R_NDS32_COPY",
- [40] "R_NDS32_GLOB_DAT", "R_NDS32_JMP_SLOT", "R_NDS32_RELATIVE", "R_NDS32_GOTOFF",
- [44] "R_NDS32_GOTPC20", "R_NDS32_GOT_HI20", "R_NDS32_GOT_LO12", "R_NDS32_GOTPC_HI20",
- [48] "R_NDS32_GOTPC_LO12", "R_NDS32_GOTOFF_HI20", "R_NDS32_GOTOFF_LO12", "R_NDS32_INSN16",
- [52] "R_NDS32_LABEL", "R_NDS32_LONGCALL1", "R_NDS32_LONGCALL2", "R_NDS32_LONGCALL3",
- [56] "R_NDS32_LONGJUMP1", "R_NDS32_LONGJUMP2", "R_NDS32_LONGJUMP3", "R_NDS32_LOADSTORE",
- [60] "R_NDS32_9_FIXED_RELA", "R_NDS32_15_FIXED_RELA", "R_NDS32_17_FIXED_RELA", "R_NDS32_25_FIXED_RELA",
- [64] "R_NDS32_PLTREL_HI20", "R_NDS32_PLTREL_LO12", "R_NDS32_PLT_GOTREL_HI20", "R_NDS32_PLT_GOTREL_LO12",
-};
diff --git a/ldso/ldso/nds32/elfinterp.c b/ldso/ldso/nds32/elfinterp.c
index bf5c901..6a091f8 100644
--- a/ldso/ldso/nds32/elfinterp.c
+++ b/ldso/ldso/nds32/elfinterp.c
@@ -148,11 +148,7 @@ _dl_parse(struct elf_resolve *tpnt, struct r_scope_elem *scope,
if (unlikely(res <0))
{
int reloc_type = ELF32_R_TYPE(rpnt->r_info);
-#if defined (__SUPPORT_LD_DEBUG__)
- _dl_dprintf(2, "can't handle reloc type %s\n ", _dl_reltypes(reloc_type));
-#else
_dl_dprintf(2, "can't handle reloc type %x\n", reloc_type);
-#endif
_dl_exit(-res);
}
if (unlikely(res >0))
diff --git a/ldso/ldso/nios2/dl-debug.h b/ldso/ldso/nios2/dl-debug.h
deleted file mode 100644
index 1fb596a..0000000
--- a/ldso/ldso/nios2/dl-debug.h
+++ /dev/null
@@ -1,18 +0,0 @@
-/* nios2 shared library loader suppport */
-
-static const char * const _dl_reltypes_tab[] =
- {
- "R_NIOS2_NONE",
- "R_NIOS2_BFD_RELOC_32",
- "R_NIOS2_BFD_RELOC_16",
- "R_NIOS2_BFD_RELOC_8",
- "R_NIOS2_GNU_VTINHERIT",
- "R_NIOS2_GNU_VTENTRY",
- "R_NIOS2_GOT16",
- "R_NIOS2_CALL16",
- "R_NIOS2_JUMP_SLOT",
- "R_NIOS2_GLOB_DAT",
- "R_NIOS2_RELATIVE",
- "R_NIOS2_GOTOFF",
- "R_NIOS2_COPY",
- };
diff --git a/ldso/ldso/nios2/elfinterp.c b/ldso/ldso/nios2/elfinterp.c
index bdbaa33..bb742d4 100644
--- a/ldso/ldso/nios2/elfinterp.c
+++ b/ldso/ldso/nios2/elfinterp.c
@@ -123,13 +123,8 @@ _dl_parse(struct elf_resolve *tpnt, struct r_scope_elem *scope,
if (unlikely(res < 0)) {
int reloc_type = ELF_R_TYPE(rpnt->r_info);
-
_dl_dprintf(2, "can't handle reloc type "
-#if defined (__SUPPORT_LD_DEBUG__)
- "%s\n", _dl_reltypes(reloc_type));
-#else
"%x\n", reloc_type);
-#endif
_dl_exit(-res);
} else if (unlikely(res > 0)) {
_dl_dprintf(2, "can't resolve symbol\n");
diff --git a/ldso/ldso/or1k/dl-debug.h b/ldso/ldso/or1k/dl-debug.h
deleted file mode 100644
index d925577..0000000
--- a/ldso/ldso/or1k/dl-debug.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/* OpenRISC 1000 shared library loader suppport
- *
- * Copyright (C) 2012 Stefan Kristansson
- *
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. The name of the above contributors may not be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-static const char * const _dl_reltypes_tab[] =
- {
- "R_OR1K_NONE",
- "R_OR1K_32",
- "R_OR1K_16",
- "R_OR1K_8",
- "R_OR1K_LO_16_IN_INSN",
- "R_OR1K_HI_16_IN_INSN",
- "R_OR1K_INSN_REL_26",
- "R_OR1K_GNU_VTENTRY",
- "R_OR1K_GNU_VTINHERIT",
- "R_OR1K_32_PCREL",
- "R_OR1K_16_PCREL",
- "R_OR1K_8_PCREL",
- "R_OR1K_GOTPC_HI16",
- "R_OR1K_GOTPC_LO16",
- "R_OR1K_GOT16",
- "R_OR1K_PLT26",
- "R_OR1K_GOTOFF_HI16",
- "R_OR1K_GOTOFF_LO16",
- "R_OR1K_COPY",
- "R_OR1K_GLOB_DAT",
- "R_OR1K_JMP_SLOT",
- "R_OR1K_RELATIVE",
- };
diff --git a/ldso/ldso/or1k/elfinterp.c b/ldso/ldso/or1k/elfinterp.c
index 928e95b..41db368 100644
--- a/ldso/ldso/or1k/elfinterp.c
+++ b/ldso/ldso/or1k/elfinterp.c
@@ -1,4 +1,3 @@
-/* vi: set sw=4 ts=4: */
/* OpenRISC 1000 ELF shared library loader suppport
*
* Copyright (c) 1994-2000 Eric Youngdale, Peter MacDonald,
@@ -134,13 +133,8 @@ _dl_parse(struct elf_resolve *tpnt, struct r_scope_elem *scope,
if (unlikely(res < 0)) {
int reloc_type = ELF_R_TYPE(rpnt->r_info);
-
_dl_dprintf(2, "can't handle reloc type "
-#if defined (__SUPPORT_LD_DEBUG__)
- "%s\n", _dl_reltypes(reloc_type));
-#else
"%x\n", reloc_type);
-#endif
_dl_exit(-res);
} else if (unlikely(res > 0)) {
_dl_dprintf(2, "can't resolve symbol\n");
diff --git a/ldso/ldso/powerpc/dl-debug.h b/ldso/ldso/powerpc/dl-debug.h
deleted file mode 100644
index 720536e..0000000
--- a/ldso/ldso/powerpc/dl-debug.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/* vi: set sw=4 ts=4: */
-/* powerpc shared library loader suppport
- *
- * Copyright (C) 2001-2002 David A. Schleef
- * Copyright (C) 2003-2004 Erik Andersen
- * Copyright (C) 2004 Joakim Tjernlund
- *
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. The name of the above contributors may not be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-static const char * const _dl_reltypes_tab[] =
- { "R_PPC_NONE", "R_PPC_ADDR32", "R_PPC_ADDR24", "R_PPC_ADDR16",
- "R_PPC_ADDR16_LO", "R_PPC_ADDR16_HI", "R_PPC_ADDR16_HA",
- "R_PPC_ADDR14", "R_PPC_ADDR14_BRTAKEN", "R_PPC_ADDR14_BRNTAKEN",
- "R_PPC_REL24", "R_PPC_REL14", "R_PPC_REL14_BRTAKEN",
- "R_PPC_REL14_BRNTAKEN", "R_PPC_GOT16", "R_PPC_GOT16_LO",
- "R_PPC_GOT16_HI", "R_PPC_GOT16_HA", "R_PPC_PLTREL24",
- "R_PPC_COPY", "R_PPC_GLOB_DAT", "R_PPC_JMP_SLOT", "R_PPC_RELATIVE",
- "R_PPC_LOCAL24PC", "R_PPC_UADDR32", "R_PPC_UADDR16", "R_PPC_REL32",
- "R_PPC_PLT32", "R_PPC_PLTREL32", "R_PPC_PLT16_LO", "R_PPC_PLT16_HI",
- "R_PPC_PLT16_HA", "R_PPC_SDAREL16", "R_PPC_SECTOFF",
- "R_PPC_SECTOFF_LO", "R_PPC_SECTOFF_HI", "R_PPC_SECTOFF_HA",
-};
diff --git a/ldso/ldso/powerpc/elfinterp.c b/ldso/ldso/powerpc/elfinterp.c
index 81587a6..43c0ce7 100644
--- a/ldso/ldso/powerpc/elfinterp.c
+++ b/ldso/ldso/powerpc/elfinterp.c
@@ -1,4 +1,3 @@
-/* vi: set sw=4 ts=4: */
/* powerpc shared library loader suppport
*
* Copyright (C) 2001-2002 David A. Schleef
@@ -317,9 +316,6 @@ _dl_do_reloc (struct elf_resolve *tpnt,struct r_scope_elem *scope,
goto out_nocode; /* No code modified */
default:
_dl_dprintf(2, "%s: can't handle reloc type ", _dl_progname);
-#if defined (__SUPPORT_LD_DEBUG__)
- _dl_dprintf(2, "%s ", _dl_reltypes(reloc_type));
-#endif
if (symtab_index)
_dl_dprintf(2, "'%s'\n", symname);
return -1;
@@ -429,11 +425,7 @@ _dl_parse(struct elf_resolve *tpnt, struct r_scope_elem *scope,
if (unlikely(res <0))
{
int reloc_type = ELF_R_TYPE(rpnt->r_info);
-#if defined (__SUPPORT_LD_DEBUG__)
- _dl_dprintf(2, "can't handle reloc type '%s' in lib '%s'\n", _dl_reltypes(reloc_type), tpnt->libname);
-#else
_dl_dprintf(2, "can't handle reloc type %x in lib '%s'\n", reloc_type, tpnt->libname);
-#endif
return res;
}
if (unlikely(res >0))
diff --git a/ldso/ldso/sh/dl-debug.h b/ldso/ldso/sh/dl-debug.h
deleted file mode 100644
index ac442bf..0000000
--- a/ldso/ldso/sh/dl-debug.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/* vi: set sw=4 ts=4: */
-/* SuperH ELF shared library loader suppport
- *
- * Copyright (C) 2002, Stefan Allius <allius(a)atecom.com> and
- * Eddie C. Dost <ecd(a)atecom.com>
- *
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. The name of the above contributors may not be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-static const char * const _dl_reltypes_tab[] =
-{
- [0] "R_SH_NONE", "R_SH_DIR32", "R_SH_REL32", "R_SH_DIR8WPN",
- [4] "R_SH_IND12W", "R_SH_DIR8WPL", "R_SH_DIR8WPZ", "R_SH_DIR8BP",
- [8] "R_SH_DIR8W", "R_SH_DIR8L",
- [25] "R_SH_SWITCH16","R_SH_SWITCH32","R_SH_USES",
- [28] "R_SH_COUNT", "R_SH_ALIGN", "R_SH_CODE", "R_SH_DATA",
- [32] "R_SH_LABEL", "R_SH_SWITCH8", "R_SH_GNU_VTINHERIT","R_SH_GNU_VTENTRY",
-[144] "R_SH_TLS_GD_32","R_SH_TLS_LD_32", "R_SH_TLS_LDO_32", "R_SH_TLS_IE_32",
-[148] "R_SH_TLS_LE_32","R_SH_TLS_DTPMOD32", "R_SH_TLS_DTPOFF32", "R_SH_TLS_TPOFF32",
-[160] "R_SH_GOT32", "R_SH_PLT32", "R_SH_COPY", "R_SH_GLOB_DAT",
-[164] "R_SH_JMP_SLOT","R_SH_RELATIVE","R_SH_GOTOFF", "R_SH_GOTPC",
-};
diff --git a/ldso/ldso/sh/elfinterp.c b/ldso/ldso/sh/elfinterp.c
index e6ff6a3..ffc8fa5 100644
--- a/ldso/ldso/sh/elfinterp.c
+++ b/ldso/ldso/sh/elfinterp.c
@@ -1,4 +1,3 @@
-/* vi: set sw=4 ts=4: */
/* SuperH ELF shared library loader suppport
*
* Copyright (C) 2002, Stefan Allius <allius(a)atecom.com> and
@@ -131,11 +130,7 @@ _dl_parse(struct elf_resolve *tpnt, struct r_scope_elem *scope,
if (unlikely(res < 0)) {
int reloc_type = ELF_R_TYPE(rpnt->r_info);
-#if defined (__SUPPORT_LD_DEBUG__)
- _dl_dprintf(2, "can't handle reloc type %s\n ", _dl_reltypes(reloc_type));
-#else
_dl_dprintf(2, "can't handle reloc type %x\n", reloc_type);
-#endif
_dl_exit(-res);
}
if (unlikely(res > 0)) {
diff --git a/ldso/ldso/sparc/dl-debug.h b/ldso/ldso/sparc/dl-debug.h
deleted file mode 100644
index 5c62cef..0000000
--- a/ldso/ldso/sparc/dl-debug.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/* vi: set sw=4 ts=4: */
-/* sparc ELF shared library loader suppport
- *
- * Copyright (c) 1994-2000 Eric Youngdale, Peter MacDonald,
- * David Engel, Hongjiu Lu and Mitch D'Souza
- *
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. The name of the above contributors may not be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-static const char * const _dl_reltypes_tab[] = {
- "R_SPARC_NONE", "R_SPARC_8",
- "R_SPARC_16", "R_SPARC_32", "R_SPARC_DISP8", "R_SPARC_DISP16",
- "R_SPARC_DISP32", "R_SPARC_WDISP30", "R_SPARC_WDISP22",
- "R_SPARC_HI22", "R_SPARC_22", "R_SPARC_13", "R_SPARC_LO10",
- "R_SPARC_GOT10", "R_SPARC_GOT13", "R_SPARC_GOT22", "R_SPARC_PC10",
- "R_SPARC_PC22", "R_SPARC_WPLT30", "R_SPARC_COPY",
- "R_SPARC_GLOB_DAT", "R_SPARC_JMP_SLOT", "R_SPARC_RELATIVE",
- "R_SPARC_UA32"
-};
diff --git a/ldso/ldso/sparc/elfinterp.c b/ldso/ldso/sparc/elfinterp.c
index bb61be9..bc86a9c 100644
--- a/ldso/ldso/sparc/elfinterp.c
+++ b/ldso/ldso/sparc/elfinterp.c
@@ -1,4 +1,3 @@
-/* vi: set sw=4 ts=4: */
/* sparc ELF shared library loader suppport
*
* Copyright (c) 1994-2000 Eric Youngdale, Peter MacDonald,
@@ -146,13 +145,8 @@ _dl_parse(struct elf_resolve *tpnt, struct r_scope_elem *scope,
if (unlikely(res < 0)) {
int reloc_type = ELF_R_TYPE(rpnt->r_info);
-
_dl_dprintf(2, "can't handle reloc type "
-#if defined (__SUPPORT_LD_DEBUG__)
- "%s\n", _dl_reltypes(reloc_type));
-#else
"%x\n", reloc_type);
-#endif
_dl_exit(-res);
} else if (unlikely(res > 0)) {
_dl_dprintf(2, "can't resolve symbol\n");
diff --git a/ldso/ldso/x86_64/dl-debug.h b/ldso/ldso/x86_64/dl-debug.h
deleted file mode 100644
index c47062b..0000000
--- a/ldso/ldso/x86_64/dl-debug.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/* vi: set sw=4 ts=4: */
-/* x86_64 debug code for ELF shared library loader suppport
- *
- * Copyright (c) 1994-2000 Eric Youngdale, Peter MacDonald,
- * David Engel, Hongjiu Lu and Mitch D'Souza
- * Copyright (C) 2001-2004 Erik Andersen
- *
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. The name of the above contributors may not be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-static const char * const _dl_reltypes_tab[] = {
- [ 0] "R_X86_64_NONE", "R_X86_64_64", "R_X86_64_PC32", "R_X86_64_GOT32",
- [ 4] "R_X86_64_PLT32", "R_X86_64_COPY", "R_X86_64_GLOB_DAT", "R_X86_64_JUMP_SLOT",
- [ 8] "R_X86_64_RELATIVE", "R_X86_64_GOTPCREL", "R_X86_64_32", "R_X86_64_32S",
- [12] "R_X86_64_16", "R_X86_64_PC16", "R_X86_64_8", "R_X86_64_PC8",
- [16] "R_X86_64_DTPMOD64", "R_X86_64_DTPOFF64", "R_X86_64_TPOFF64", "R_X86_64_TLSGD",
- [20] "R_X86_64_TLSLD", "R_X86_64_DTPOFF32", "R_X86_64_GOTTPOFF", "R_X86_64_TPOFF32"
-};
diff --git a/ldso/ldso/x86_64/elfinterp.c b/ldso/ldso/x86_64/elfinterp.c
index 75666a7..2dd7c13 100644
--- a/ldso/ldso/x86_64/elfinterp.c
+++ b/ldso/ldso/x86_64/elfinterp.c
@@ -1,4 +1,3 @@
-/* vi: set sw=4 ts=4: */
/* x86_64 ELF shared library loader suppport
*
* Copyright (c) 1994-2000 Eric Youngdale, Peter MacDonald,
@@ -133,13 +132,8 @@ _dl_parse(struct elf_resolve *tpnt, struct r_scope_elem *scope,
if (unlikely(res < 0)) {
int reloc_type = ELF_R_TYPE(rpnt->r_info);
-
_dl_dprintf(2, "can't handle reloc type "
-#if defined (__SUPPORT_LD_DEBUG__)
- "%s\n", _dl_reltypes(reloc_type));
-#else
"%x\n", reloc_type);
-#endif
_dl_exit(-res);
} else if (unlikely(res > 0)) {
_dl_dprintf(2, "can't resolve symbol\n");
diff --git a/ldso/ldso/xtensa/dl-debug.h b/ldso/ldso/xtensa/dl-debug.h
deleted file mode 100644
index 18beae5..0000000
--- a/ldso/ldso/xtensa/dl-debug.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* vi: set sw=4 ts=4: */
-/* Xtensa ELF shared library loader suppport
- *
- * Copyright (C) 2007 Tensilica Inc.
- *
- * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- */
-
-static const char * const _dl_reltypes_tab[] =
-{
- [0] "R_XTENSA_NONE", "R_XTENSA_32",
- [2] "R_XTENSA_RTLD", "R_XTENSA_GLOB_DAT",
- [4] "R_XTENSA_JMP_SLOT", "R_XTENSA_RELATIVE",
- [6] "R_XTENSA_PLT", "R_XTENSA_UNUSED7",
- [8] "R_XTENSA_OP0", "R_XTENSA_OP1",
- [10] "R_XTENSA_OP2", "R_XTENSA_ASM_EXPAND",
- [12] "R_XTENSA_ASM_SIMPLIFY", "R_XTENSA_UNUSED13",
- [14] "R_XTENSA_UNUSED14", "R_XTENSA_GNU_VTINHERIT",
- [16] "R_XTENSA_GNU_VTENTRY", "R_XTENSA_DIFF8",
- [18] "R_XTENSA_DIFF16", "R_XTENSA_DIFF32",
- [20] "R_XTENSA_SLOT0_OP", "R_XTENSA_SLOT1_OP",
- [22] "R_XTENSA_SLOT2_OP", "R_XTENSA_SLOT3_OP",
- [24] "R_XTENSA_SLOT4_OP", "R_XTENSA_SLOT5_OP",
- [26] "R_XTENSA_SLOT6_OP", "R_XTENSA_SLOT7_OP",
- [28] "R_XTENSA_SLOT8_OP", "R_XTENSA_SLOT9_OP",
- [30] "R_XTENSA_SLOT10_OP", "R_XTENSA_SLOT11_OP",
- [32] "R_XTENSA_SLOT12_OP", "R_XTENSA_SLOT13_OP",
- [34] "R_XTENSA_SLOT14_OP", "R_XTENSA_SLOT0_ALT",
- [36] "R_XTENSA_SLOT1_ALT", "R_XTENSA_SLOT2_ALT",
- [38] "R_XTENSA_SLOT3_ALT", "R_XTENSA_SLOT4_ALT",
- [40] "R_XTENSA_SLOT5_ALT", "R_XTENSA_SLOT6_ALT",
- [42] "R_XTENSA_SLOT7_ALT", "R_XTENSA_SLOT8_ALT",
- [44] "R_XTENSA_SLOT9_ALT", "R_XTENSA_SLOT10_ALT",
- [46] "R_XTENSA_SLOT11_ALT", "R_XTENSA_SLOT12_ALT",
- [48] "R_XTENSA_SLOT13_ALT", "R_XTENSA_SLOT14_ALT",
- [50] "R_XTENSA_TLSDESC_FN", "R_XTENSA_TLSDESC_ARG",
- [52] "R_XTENSA_TLS_TPOFF"
-};
diff --git a/ldso/ldso/xtensa/elfinterp.c b/ldso/ldso/xtensa/elfinterp.c
index 66deb63..4c83ab6 100644
--- a/ldso/ldso/xtensa/elfinterp.c
+++ b/ldso/ldso/xtensa/elfinterp.c
@@ -1,4 +1,3 @@
-/* vi: set sw=4 ts=4: */
/* Xtensa ELF shared library loader suppport
*
* Copyright (C) 2007 Tensilica Inc.
@@ -126,12 +125,7 @@ _dl_parse (struct elf_resolve *tpnt, struct r_scope_elem *scope,
if (unlikely (res < 0)) {
int reloc_type = ELF_R_TYPE (rpnt->r_info);
-#if defined (__SUPPORT_LD_DEBUG__)
- _dl_dprintf (2, "can't handle reloc type %s\n",
- _dl_reltypes (reloc_type));
-#else
_dl_dprintf (2, "can't handle reloc type %x\n", reloc_type);
-#endif
_dl_exit (-res);
}
if (unlikely (res > 0)) {
--
2.1.4
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "uClibc-ng - small C library for embedded systems".
The branch, master has been updated
via 03884934b32c79da545ef38a42835a6c257b125d (commit)
from 6cfe578d49ab6638be8a7448ccc3b9d8de4a247b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 03884934b32c79da545ef38a42835a6c257b125d
Author: Waldemar Brodkorb <wbx(a)uclibc-ng.org>
Date: Tue Dec 27 09:24:24 2016 +0100
add init_module/delete_module syscall wrappers
Add the wrappers unconditionally, because kmod package
still uses them.
-----------------------------------------------------------------------
Summary of changes:
libc/sysdeps/linux/common/Makefile.in | 1 +
libc/sysdeps/linux/common/module.c | 23 +++++++++++++++++++++++
2 files changed, 24 insertions(+)
create mode 100644 libc/sysdeps/linux/common/module.c
diff --git a/libc/sysdeps/linux/common/Makefile.in b/libc/sysdeps/linux/common/Makefile.in
index 595074c..faed6fd 100644
--- a/libc/sysdeps/linux/common/Makefile.in
+++ b/libc/sysdeps/linux/common/Makefile.in
@@ -31,6 +31,7 @@ CSRC-$(UCLIBC_LINUX_SPECIFIC) += \
ioperm.c \
iopl.c \
modify_ldt.c \
+ module.c \
personality.c \
pipe2.c \
ppoll.c \
diff --git a/libc/sysdeps/linux/common/module.c b/libc/sysdeps/linux/common/module.c
new file mode 100644
index 0000000..146a43e
--- /dev/null
+++ b/libc/sysdeps/linux/common/module.c
@@ -0,0 +1,23 @@
+/*
+ * init_module()/delete_module() for uClibc
+ *
+ * Copyright (C) 2000-2006 Erik Andersen <andersen(a)uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#include <sys/syscall.h>
+
+#ifdef __NR_init_module
+int init_module(void *first, void *second, void *third, void *fourth, void *fifth);
+/* This may have 5 arguments (for old 2.0 kernels) or 2 arguments
+ * (for 2.2 and 2.4 kernels). Use the greatest common denominator,
+ * and let the kernel cope with whatever it gets. It's good at that. */
+_syscall5(int, init_module, void *, first, void *, second, void *, third,
+ void *, fourth, void *, fifth)
+#endif
+
+#ifdef __NR_delete_module
+int delete_module(const char *name, unsigned int flags);
+_syscall2(int, delete_module, const char *, name, unsigned int, flags)
+#endif
hooks/post-receive
--
uClibc-ng - small C library for embedded systems
Hi everyone,
I'm kinda silent on the list so people may not know that Gentoo supports
uclibc-ng as a replacement for glibc. As a from source distro, we can
do that. I also support Gentoo+musl.
A few months back I switched from uclibc to uclibc-ng for obvious
reasons. Its important for our users that we provide a forward
migration path. The migration from uclibc -> uclibc-ng was a bit rocky
but doable. [See https://wiki.gentoo.org/wiki/Project:Hardened_uClibc].
Since then, there have been two major changes to uclibc-ng which
necessitated some more extra steps: 1) the coalescing of the breakout
libraries like libdl.so, libm.so etc into libc.so. and 2) dropping
obstack support. I'm going to outline the steps for forward migration
here as an RFC. I'm also going to push out a news item to our users.
Please comment
1. First we address the breakout libraries. Make sure you are on either
uclibc-ng-1.0.18 or 1.0.19 and rebuild world with
emerge -evq @world
This should ensure that all executables bypass any symlinks from libm.so
(and friends) to libc.so and link directly against libc.so. You can
reassure yourself afterwards that a particular ${executable} does not
link against any of the breakout libraries by using
readelf -d ${executable} | grep
"NEEDED.*lib\(crypt\|dl\|m\|pthread\|rt\|resolv\|ubacktrace\|util\).so"
At this point it is safe to upgrade to 1.0.20. Make sure you do not set
the symlink-compat USE flag. This is the default behavior, but you can
be explicit about it:
USE="-symlink-compat" emerge =sys-libs/uclibc-ng-1.0.20
2. Now we will have to rebuild @world again and make sure that the
packages' build systems think that our libc does NOT provide obstack,
even though it does. A direct upgrade to 1.0.21 will break your system
because many critical executables will not be able to find obstack* symbols.
There's a few steps that will do the trick here:
a. Remove the obstack.h header:
mv /usr/include/obstack.h ~
b. Force any gnulib build to think it has to provide its own obstack:
cp /usr/include/gnu-versions.h ~
sed -i -e '/#define _GNU_OBSTACK/d' /usr/include/gnu-versions.h
c. Tell stdio.h to not expose some obstack function prototypes. This is
accomplished by defining __UCLIBC_HAS_OBSTACK__ 0 via the
uClibc_config.h file:
cp /usr/include/bits/uClibc_config.h ~
sed -i -e '/__UCLIBC_HAS_OBSTACK__/ s/1/0/'
/usr/include/bits/uClibc_config.h
3. Now we are ready to rebuild @world, but we must skip rebuilding
uclibc-ng itself since it will just undo the changes in step 2!
emerge -—keep-going -evq --exclude sys-libs/uclibc-ng @world
Some packages might fail. dev-libs/gmp will fail. It is a critical
part of the toolchain, and we must deal with it.
4. To rebuild dev-libs/gmp, we need to override its build system's
search for obstack_vprintf(). Use
ac_cv_func_obstack_vprintf=no emerge -1 gmp
5. At this point you may want to check that no ${executable} is looking
for an undefined symbol that looks like obstack*. If an executable does
have such an undefined symbol, it will break upon upgrade. That's okay
as long as it isn't critical to your system!
readelf -sW ${executable} | grep "UND.*obstack"
6. Now we can upgrade uclibc-ng:
emerge sys-libs/uclibc-ng-1.0.21
7. Finally, we rebuild world one more time to fix any non-critical
executables that still need obstack:
emerge —evq @world
Hi Embedded Hackers,
this is mostly a bugfix release.
The last problems with single libc migration where fixed.
Some stubs for libintl and a tiny libiconv implementation added.
Full changes:
Max Filippov (1):
utils: add -static to CFLAGS when HAVE_SHARED is not set
Thomas Petazzoni (3):
libc/sysdeps/linux/common/madvise.c: disable on noMMU architectures
include/sys/mman.h: remove madvise/posix_madvise prototypes on noMMU
sys/cdefs.h: add definition of __attribute_alloc_size__
Waldemar Brodkorb (12):
bfin: fix a gcc warning
fix static linking for FDPIC toolchains
xtensa: fix static linking
threads: optimize single threaded applications
add libiconv-tiny implementation
add stub implementation for libintl/gettext
remove __MALLOC_GLIBC_COMPAT__ option
remove obstack support
remove misc/gnu, cleanup comment
remove UCLIBC_LINUX_MODULE_26
mips: use the common dirent.h
bump for release
Happy hacking,
Waldemar
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "uClibc-ng - small C library for embedded systems".
The annotated tag, v1.0.21 has been created
at a9085afcfdc69e6dc29dcfb781e4c9afce31fd1d (tag)
tagging 6cfe578d49ab6638be8a7448ccc3b9d8de4a247b (commit)
replaces v1.0.20
tagged by Waldemar Brodkorb
on Mon Dec 26 09:12:19 2016 +0100
- Log -----------------------------------------------------------------
release 1.0.21 - Trapistes Rochefort 10
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
iQIcBAABCAAGBQJYYNDlAAoJEMEz+QKmmH5iaZ4QAJ3Dsbh6tzAHAu751Nw6nxTw
YHKBhEoVpqEeHIKZCIU6QWryDhijeGtpOC8YS9Wwz/2hJnms8O+9V5M/9uHnr2F4
WHxSnilvDOsAOoLwKxtptejYupPL0GJnLN1fpIbclpvnDzDSt4hAW3zPAGly71ox
tAtRCT6GRi6NSggRRCa+ZTsqs/4ORGOkmpf0lPB3KjKy+zYkh2qNYEDFxjTG+uru
qVD5YbNGArcxH/RoykjsfrYEF73PDRqQ35rUSznnbBJxtphc3fVyXh+vRhkCmfWk
dcSzdnZPHIPIJYnOtsofYL4+qmwDC+qnskQ3IVizxvfunIqlusrgCiEByNsjGWm5
/k//5MO+2g/OCBFDyxXEqOOeiLjqjIgTN6y1yWVKnuIeVVnVQtO51wbO8Wa78K44
eK9kekJu+H+IZwv6oFsleE8hY6CUQws3rHbygWab3GTxPlUQMPUl/tAoGSSvzmSi
kzZqEe07leycU86np1WbNSEChgPqmADPhAeRZaq5R45z7JVRv22TvSvZddcJkGuk
Jn/3D65nadj5ywkCKdF23SCLaf6cF5F5ZM4G65xDnakZB+rHro73YGqv8kl6x060
mKhUy9gVDFyOn3svG3VRi0GO+Mi5Joyj5wQt93awEKBVrDu2Fj/XNWV29E0sEXw9
3OPoAjj5Dt75DKJH5pka
=ZDU4
-----END PGP SIGNATURE-----
Max Filippov (1):
utils: add -static to CFLAGS when HAVE_SHARED is not set
Thomas Petazzoni (3):
libc/sysdeps/linux/common/madvise.c: disable on noMMU architectures
include/sys/mman.h: remove madvise/posix_madvise prototypes on noMMU
sys/cdefs.h: add definition of __attribute_alloc_size__
Waldemar Brodkorb (12):
bfin: fix a gcc warning
fix static linking for FDPIC toolchains
xtensa: fix static linking
threads: optimize single threaded applications
add libiconv-tiny implementation
add stub implementation for libintl/gettext
remove __MALLOC_GLIBC_COMPAT__ option
remove obstack support
remove misc/gnu, cleanup comment
remove UCLIBC_LINUX_MODULE_26
mips: use the common dirent.h
bump for release
-----------------------------------------------------------------------
hooks/post-receive
--
uClibc-ng - small C library for embedded systems
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "uClibc-ng - small C library for embedded systems".
The branch, master has been updated
via 6cfe578d49ab6638be8a7448ccc3b9d8de4a247b (commit)
from cf5bbef923ed50e299295af352692865e48d8eeb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6cfe578d49ab6638be8a7448ccc3b9d8de4a247b
Author: Waldemar Brodkorb <wbx(a)openadk.org>
Date: Mon Dec 26 09:11:34 2016 +0100
bump for release
-----------------------------------------------------------------------
Summary of changes:
Rules.mak | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Rules.mak b/Rules.mak
index f3c3d7a..8bd2863 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -127,7 +127,7 @@ export RUNTIME_PREFIX DEVEL_PREFIX KERNEL_HEADERS MULTILIB_DIR
# Now config hard core
MAJOR_VERSION := 1
MINOR_VERSION := 0
-SUBLEVEL := 20
+SUBLEVEL := 21
EXTRAVERSION :=
VERSION := $(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL)
ABI_VERSION := $(MAJOR_VERSION)
hooks/post-receive
--
uClibc-ng - small C library for embedded systems
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "uClibc-ng - small C library for embedded systems".
The branch, master has been updated
via cf5bbef923ed50e299295af352692865e48d8eeb (commit)
via c7294c98c891e56f6507cbbf9441fce17c92e41a (commit)
from 6d4d6e2cfc6b7ea247adca2d3ae137a68c4e5148 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit cf5bbef923ed50e299295af352692865e48d8eeb
Author: Waldemar Brodkorb <wbx(a)openadk.org>
Date: Mon Dec 26 08:26:50 2016 +0100
mips: use the common dirent.h
commit c7294c98c891e56f6507cbbf9441fce17c92e41a
Author: Waldemar Brodkorb <wbx(a)openadk.org>
Date: Fri Dec 23 07:38:21 2016 +0100
remove UCLIBC_LINUX_MODULE_26
The syscall wrappers are not required and other C libraries
do not provide them. Busybox modutils.c must be patched so
that syscall() is used for uClibc-ng.
Signed-off-by: Waldemar Brodkorb <wbx(a)openadk.org>
-----------------------------------------------------------------------
Summary of changes:
extra/Configs/Config.in | 9 -----
extra/Configs/defconfigs/or1k/defconfig | 2 --
libc/sysdeps/linux/common/Makefile.in | 1 -
libc/sysdeps/linux/common/delete_module.c | 13 -------
libc/sysdeps/linux/common/init_module.c | 20 -----------
libc/sysdeps/linux/common/stubs.c | 8 -----
libc/sysdeps/linux/mips/bits/dirent.h | 60 -------------------------------
7 files changed, 113 deletions(-)
delete mode 100644 libc/sysdeps/linux/common/delete_module.c
delete mode 100644 libc/sysdeps/linux/common/init_module.c
delete mode 100644 libc/sysdeps/linux/mips/bits/dirent.h
diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in
index 64ff513..6b0985e 100644
--- a/extra/Configs/Config.in
+++ b/extra/Configs/Config.in
@@ -950,15 +950,6 @@ config UCLIBC_GRP_BUFFER_SIZE
comment "Support various families of functions"
-config UCLIBC_LINUX_MODULE_26
- bool "Linux kernel module functions (2.6)"
- default y
- help
- delete_module, init_module
- are used in linux for loadable kernel modules.
-
- Say N if you do not use kernel modules.
-
config UCLIBC_LINUX_SPECIFIC
bool "Linux specific functions"
default y
diff --git a/extra/Configs/defconfigs/or1k/defconfig b/extra/Configs/defconfigs/or1k/defconfig
index d976515..a419747 100644
--- a/extra/Configs/defconfigs/or1k/defconfig
+++ b/extra/Configs/defconfigs/or1k/defconfig
@@ -114,8 +114,6 @@ UCLIBC_GRP_BUFFER_SIZE=256
#
# Support various families of functions
#
-UCLIBC_LINUX_MODULE_26=y
-UCLIBC_LINUX_MODULE_24=y
UCLIBC_LINUX_SPECIFIC=y
UCLIBC_HAS_GNU_ERROR=y
UCLIBC_BSD_SPECIFIC=y
diff --git a/libc/sysdeps/linux/common/Makefile.in b/libc/sysdeps/linux/common/Makefile.in
index 257ed72..595074c 100644
--- a/libc/sysdeps/linux/common/Makefile.in
+++ b/libc/sysdeps/linux/common/Makefile.in
@@ -15,7 +15,6 @@ CSRC_LFS := $(notdir $(wildcard $(COMMON_DIR)/*64.c))
CSRC-y := $(filter-out llseek.c $(CSRC_LFS),$(CSRC-y))
CSRC-y += llseek.c $(CSRC_LFS)
CSRC-$(findstring y,$(UCLIBC_HAS_SSP)$(UCLIBC_HAS_FORTIFY)) += ssp.c
-CSRC-$(UCLIBC_LINUX_MODULE_26) += delete_module.c init_module.c
# we need these internally: fstatfs.c statfs.c
CSRC-$(UCLIBC_LINUX_SPECIFIC) += \
bdflush.c \
diff --git a/libc/sysdeps/linux/common/delete_module.c b/libc/sysdeps/linux/common/delete_module.c
deleted file mode 100644
index 05841d4..0000000
--- a/libc/sysdeps/linux/common/delete_module.c
+++ /dev/null
@@ -1,13 +0,0 @@
-/* vi: set sw=4 ts=4: */
-/*
- * delete_module() for uClibc
- * Copyright (C) 2000-2006 Erik Andersen <andersen(a)uclibc.org>
- *
- * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- */
-
-#include <sys/syscall.h>
-#ifdef __NR_delete_module
-int delete_module(const char *name, unsigned int flags);
-_syscall2(int, delete_module, const char *, name, unsigned int, flags)
-#endif
diff --git a/libc/sysdeps/linux/common/init_module.c b/libc/sysdeps/linux/common/init_module.c
deleted file mode 100644
index a2a3e02..0000000
--- a/libc/sysdeps/linux/common/init_module.c
+++ /dev/null
@@ -1,20 +0,0 @@
-/* vi: set sw=4 ts=4: */
-/*
- * init_module() for uClibc
- *
- * Copyright (C) 2000-2006 Erik Andersen <andersen(a)uclibc.org>
- *
- * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- */
-
-#include <sys/syscall.h>
-
-#ifdef __NR_init_module
-int init_module(void *first, void *second, void *third, void *fourth, void *fifth);
-/* This may have 5 arguments (for old 2.0 kernels) or 2 arguments
- * (for 2.2 and 2.4 kernels). Use the greatest common denominator,
- * and let the kernel cope with whatever it gets. It's good at that. */
-_syscall5(int, init_module, void *, first, void *, second, void *, third,
- void *, fourth, void *, fifth)
-#endif
-
diff --git a/libc/sysdeps/linux/common/stubs.c b/libc/sysdeps/linux/common/stubs.c
index e7e81da..c17e509 100644
--- a/libc/sysdeps/linux/common/stubs.c
+++ b/libc/sysdeps/linux/common/stubs.c
@@ -86,10 +86,6 @@ make_stub(capset)
make_stub(connect)
#endif
-#if !defined __NR_delete_module && defined __UCLIBC_LINUX_MODULE_26__
-make_stub(delete_module)
-#endif
-
#if !defined __NR_epoll_create && defined __UCLIBC_HAS_EPOLL__ \
&& !defined __NR_epoll_create1
make_stub(epoll_create)
@@ -169,10 +165,6 @@ make_stub(getsockopt)
make_stub(getxattr)
#endif
-#if !defined __NR_init_module && defined __UCLIBC_LINUX_MODULE_26__
-make_stub(init_module)
-#endif
-
#if !defined __NR_inotify_add_watch && defined __UCLIBC_LINUX_SPECIFIC__
make_stub(inotify_add_watch)
#endif
diff --git a/libc/sysdeps/linux/mips/bits/dirent.h b/libc/sysdeps/linux/mips/bits/dirent.h
deleted file mode 100644
index 65c9fc6..0000000
--- a/libc/sysdeps/linux/mips/bits/dirent.h
+++ /dev/null
@@ -1,60 +0,0 @@
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _DIRENT_H
-# error "Never use <bits/dirent.h> directly; include <dirent.h> instead."
-#endif
-#include <errno.h>
-#include <sys/syscall.h>
-
-struct dirent
- {
-#if defined(__USE_FILE_OFFSET64) && defined(__NR_getdents64)
- __ino64_t d_ino;
- __off64_t d_off;
-#else
- __ino_t d_ino;
- __off_t d_off;
-#endif
- unsigned short int d_reclen;
- unsigned char d_type;
- char d_name[256]; /* We must not include limits.h! */
- };
-
-#ifdef __USE_LARGEFILE64
-struct dirent64
- {
-#ifdef __NR_getdents64
- __ino64_t d_ino;
- __off64_t d_off;
-#else
- /* dirent64 is the same as dirent. */
- __ino_t d_ino;
- __off_t d_off;
-#endif
- unsigned short int d_reclen;
- unsigned char d_type;
- char d_name[256]; /* We must not include limits.h! */
- };
-#endif
-
-#define d_fileno d_ino /* Backwards compatibility. */
-
-#undef _DIRENT_HAVE_D_NAMLEN
-#define _DIRENT_HAVE_D_RECLEN
-#define _DIRENT_HAVE_D_OFF
-#define _DIRENT_HAVE_D_TYPE
hooks/post-receive
--
uClibc-ng - small C library for embedded systems
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "uClibc-ng - small C library for embedded systems".
The branch, master has been updated
via 6d4d6e2cfc6b7ea247adca2d3ae137a68c4e5148 (commit)
from 0bd6bfb2b643ea2b4b1440dfd917ba752f0c0d15 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6d4d6e2cfc6b7ea247adca2d3ae137a68c4e5148
Author: Waldemar Brodkorb <wbx(a)openadk.org>
Date: Wed Dec 21 19:25:07 2016 +0100
remove misc/gnu, cleanup comment
-----------------------------------------------------------------------
Summary of changes:
libc/misc/Makefile.in | 4 ----
1 file changed, 4 deletions(-)
diff --git a/libc/misc/Makefile.in b/libc/misc/Makefile.in
index e01b3dc..e45002e 100644
--- a/libc/misc/Makefile.in
+++ b/libc/misc/Makefile.in
@@ -5,9 +5,6 @@
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
#
-#DIRS:=assert ctype dirent error file fnmatch ftw glob gnu internals intl locale mntent \
-# pthread regex search statfs syslog sysvipc time ttyent utmp wchar wctype wordexp
-
include $(top_srcdir)libc/misc/assert/Makefile.in
include $(top_srcdir)libc/misc/ctype/Makefile.in
include $(top_srcdir)libc/misc/dirent/Makefile.in
@@ -18,7 +15,6 @@ include $(top_srcdir)libc/misc/fnmatch/Makefile.in
include $(top_srcdir)libc/misc/ftw/Makefile.in
include $(top_srcdir)libc/misc/fts/Makefile.in
include $(top_srcdir)libc/misc/glob/Makefile.in
-include $(top_srcdir)libc/misc/gnu/Makefile.in
include $(top_srcdir)libc/misc/internals/Makefile.in
include $(top_srcdir)libc/misc/locale/Makefile.in
include $(top_srcdir)libc/misc/mntent/Makefile.in
hooks/post-receive
--
uClibc-ng - small C library for embedded systems