Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd We switched to newer versions in elftoolchain a...
details: https://anonhg.NetBSD.org/src/rev/b8f4887f7f2f
branches: trunk
changeset: 810911:b8f4887f7f2f
user: christos <christos%NetBSD.org@localhost>
date: Wed Sep 30 00:35:46 2015 +0000
description:
We switched to newer versions in elftoolchain a while ago.
diffstat:
external/bsd/libdwarf/Makefile | 5 -
external/bsd/libdwarf/Makefile.inc | 11 -
external/bsd/libdwarf/dist/Makefile | 29 -
external/bsd/libdwarf/dist/_libdwarf.h | 201 ------
external/bsd/libdwarf/dist/dwarf.h | 481 --------------
external/bsd/libdwarf/dist/dwarf_abbrev.c | 77 --
external/bsd/libdwarf/dist/dwarf_attr.c | 98 --
external/bsd/libdwarf/dist/dwarf_attrval.c | 277 --------
external/bsd/libdwarf/dist/dwarf_cu.c | 74 --
external/bsd/libdwarf/dist/dwarf_dealloc.c | 47 -
external/bsd/libdwarf/dist/dwarf_die.c | 197 -----
external/bsd/libdwarf/dist/dwarf_dump.c | 901 ---------------------------
external/bsd/libdwarf/dist/dwarf_errmsg.c | 82 --
external/bsd/libdwarf/dist/dwarf_errno.c | 44 -
external/bsd/libdwarf/dist/dwarf_finish.c | 104 ---
external/bsd/libdwarf/dist/dwarf_form.c | 53 -
external/bsd/libdwarf/dist/dwarf_func.c | 232 -------
external/bsd/libdwarf/dist/dwarf_init.c | 759 -----------------------
external/bsd/libdwarf/dist/dwarf_loc.c | 613 ------------------
external/bsd/libdwarf/dist/libdwarf.h | 178 -----
external/bsd/libdwarf/lib/Makefile | 31 -
external/bsd/libdwarf/lib/shlib_version | 6 -
external/bsd/libdwarf/prepare-import.sh | 42 -
external/bsd/libelf/Makefile | 5 -
external/bsd/libelf/Makefile.inc | 11 -
external/bsd/libelf/dist/Makefile | 163 ----
external/bsd/libelf/dist/README | 12 -
external/bsd/libelf/dist/Version.map | 102 ---
external/bsd/libelf/dist/_libelf.h | 199 ------
external/bsd/libelf/dist/elf.3 | 575 -----------------
external/bsd/libelf/dist/elf_begin.3 | 283 --------
external/bsd/libelf/dist/elf_begin.c | 225 ------
external/bsd/libelf/dist/elf_cntl.3 | 113 ---
external/bsd/libelf/dist/elf_cntl.c | 61 -
external/bsd/libelf/dist/elf_data.c | 237 -------
external/bsd/libelf/dist/elf_end.3 | 78 --
external/bsd/libelf/dist/elf_end.c | 96 --
external/bsd/libelf/dist/elf_errmsg.3 | 109 ---
external/bsd/libelf/dist/elf_errmsg.c | 102 ---
external/bsd/libelf/dist/elf_errno.c | 60 -
external/bsd/libelf/dist/elf_fill.3 | 54 -
external/bsd/libelf/dist/elf_fill.c | 40 -
external/bsd/libelf/dist/elf_flag.c | 166 -----
external/bsd/libelf/dist/elf_flagdata.3 | 161 ----
external/bsd/libelf/dist/elf_getarhdr.3 | 99 ---
external/bsd/libelf/dist/elf_getarhdr.c | 50 -
external/bsd/libelf/dist/elf_getarsym.3 | 132 ----
external/bsd/libelf/dist/elf_getarsym.c | 58 -
external/bsd/libelf/dist/elf_getbase.3 | 69 --
external/bsd/libelf/dist/elf_getbase.c | 47 -
external/bsd/libelf/dist/elf_getdata.3 | 216 ------
external/bsd/libelf/dist/elf_getident.3 | 85 --
external/bsd/libelf/dist/elf_getident.c | 73 --
external/bsd/libelf/dist/elf_getphnum.3 | 89 --
external/bsd/libelf/dist/elf_getscn.3 | 153 ----
external/bsd/libelf/dist/elf_getshnum.3 | 80 --
external/bsd/libelf/dist/elf_getshstrndx.3 | 89 --
external/bsd/libelf/dist/elf_hash.3 | 59 -
external/bsd/libelf/dist/elf_hash.c | 56 -
external/bsd/libelf/dist/elf_kind.3 | 73 --
external/bsd/libelf/dist/elf_kind.c | 45 -
external/bsd/libelf/dist/elf_memory.3 | 124 ---
external/bsd/libelf/dist/elf_memory.c | 93 --
external/bsd/libelf/dist/elf_next.3 | 98 --
external/bsd/libelf/dist/elf_next.c | 67 --
external/bsd/libelf/dist/elf_phnum.c | 55 -
external/bsd/libelf/dist/elf_rand.3 | 120 ---
external/bsd/libelf/dist/elf_rand.c | 60 -
external/bsd/libelf/dist/elf_rawfile.3 | 78 --
external/bsd/libelf/dist/elf_rawfile.c | 54 -
external/bsd/libelf/dist/elf_scn.c | 240 -------
external/bsd/libelf/dist/elf_shnum.c | 55 -
external/bsd/libelf/dist/elf_shstrndx.c | 71 --
external/bsd/libelf/dist/elf_strptr.3 | 118 ---
external/bsd/libelf/dist/elf_strptr.c | 139 ----
external/bsd/libelf/dist/elf_types.m4 | 311 ---------
external/bsd/libelf/dist/elf_update.3 | 288 --------
external/bsd/libelf/dist/elf_update.c | 920 ----------------------------
external/bsd/libelf/dist/elf_version.3 | 97 --
external/bsd/libelf/dist/elf_version.c | 53 -
external/bsd/libelf/dist/gelf.3 | 203 ------
external/bsd/libelf/dist/gelf.h | 125 ---
external/bsd/libelf/dist/gelf_cap.c | 154 ----
external/bsd/libelf/dist/gelf_checksum.3 | 117 ---
external/bsd/libelf/dist/gelf_checksum.c | 59 -
external/bsd/libelf/dist/gelf_dyn.c | 149 ----
external/bsd/libelf/dist/gelf_ehdr.c | 172 -----
external/bsd/libelf/dist/gelf_fsize.3 | 96 --
external/bsd/libelf/dist/gelf_fsize.c | 63 -
external/bsd/libelf/dist/gelf_getcap.3 | 123 ---
external/bsd/libelf/dist/gelf_getclass.3 | 63 -
external/bsd/libelf/dist/gelf_getclass.c | 40 -
external/bsd/libelf/dist/gelf_getdyn.3 | 125 ---
external/bsd/libelf/dist/gelf_getehdr.3 | 125 ---
external/bsd/libelf/dist/gelf_getmove.3 | 122 ---
external/bsd/libelf/dist/gelf_getphdr.3 | 143 ----
external/bsd/libelf/dist/gelf_getrel.3 | 123 ---
external/bsd/libelf/dist/gelf_getrela.3 | 123 ---
external/bsd/libelf/dist/gelf_getshdr.3 | 117 ---
external/bsd/libelf/dist/gelf_getsym.3 | 127 ---
external/bsd/libelf/dist/gelf_getsyminfo.3 | 117 ---
external/bsd/libelf/dist/gelf_getsymshndx.3 | 164 ----
external/bsd/libelf/dist/gelf_move.c | 160 ----
external/bsd/libelf/dist/gelf_newehdr.3 | 187 -----
external/bsd/libelf/dist/gelf_newphdr.3 | 135 ----
external/bsd/libelf/dist/gelf_phdr.c | 179 -----
external/bsd/libelf/dist/gelf_rel.c | 158 ----
external/bsd/libelf/dist/gelf_rela.c | 161 ----
external/bsd/libelf/dist/gelf_shdr.c | 136 ----
external/bsd/libelf/dist/gelf_sym.c | 159 ----
external/bsd/libelf/dist/gelf_syminfo.c | 155 ----
external/bsd/libelf/dist/gelf_symshndx.c | 134 ----
external/bsd/libelf/dist/gelf_update_ehdr.3 | 125 ---
external/bsd/libelf/dist/gelf_xlate.c | 81 --
external/bsd/libelf/dist/gelf_xlatetof.3 | 249 -------
external/bsd/libelf/dist/libelf.c | 73 --
external/bsd/libelf/dist/libelf.h | 287 --------
external/bsd/libelf/dist/libelf_align.c | 167 -----
external/bsd/libelf/dist/libelf_allocate.c | 214 ------
external/bsd/libelf/dist/libelf_ar.c | 490 --------------
external/bsd/libelf/dist/libelf_checksum.c | 105 ---
external/bsd/libelf/dist/libelf_convert.m4 | 676 --------------------
external/bsd/libelf/dist/libelf_data.c | 99 ---
external/bsd/libelf/dist/libelf_ehdr.c | 221 ------
external/bsd/libelf/dist/libelf_extended.c | 142 ----
external/bsd/libelf/dist/libelf_fsize.m4 | 156 ----
external/bsd/libelf/dist/libelf_msize.m4 | 110 ---
external/bsd/libelf/dist/libelf_phdr.c | 161 ----
external/bsd/libelf/dist/libelf_shdr.c | 61 -
external/bsd/libelf/dist/libelf_xlate.c | 149 ----
external/bsd/libelf/lib/Makefile | 144 ----
external/bsd/libelf/lib/shlib_version | 6 -
external/bsd/libelf/prepare-import.sh | 41 -
133 files changed, 0 insertions(+), 19879 deletions(-)
diffs (truncated from 20411 to 300 lines):
diff -r f7e35bf47e09 -r b8f4887f7f2f external/bsd/libdwarf/Makefile
--- a/external/bsd/libdwarf/Makefile Wed Sep 30 00:17:09 2015 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2009/12/23 00:10:15 darran Exp $
-
-SUBDIR= lib
-
-.include <bsd.subdir.mk>
diff -r f7e35bf47e09 -r b8f4887f7f2f external/bsd/libdwarf/Makefile.inc
--- a/external/bsd/libdwarf/Makefile.inc Wed Sep 30 00:17:09 2015 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-# $NetBSD: Makefile.inc,v 1.1 2009/12/23 00:10:15 darran Exp $
-
-.include <bsd.own.mk>
-
-LIBDWARF_DIR= ${NETBSDSRCDIR}/external/bsd/libdwarf/dist
-
-CPPFLAGS+= -I${LIBDWARF_DIR}
-
-WARNS?= 4
-
-.PATH: ${LIBDWARF_DIR}
diff -r f7e35bf47e09 -r b8f4887f7f2f external/bsd/libdwarf/dist/Makefile
--- a/external/bsd/libdwarf/dist/Makefile Wed Sep 30 00:17:09 2015 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-# $FreeBSD: src/lib/libdwarf/Makefile,v 1.7 2012/11/17 01:49:48 svnexp Exp $
-
-LIB= dwarf
-
-SRCS= \
- dwarf_abbrev.c \
- dwarf_attr.c \
- dwarf_attrval.c \
- dwarf_cu.c \
- dwarf_dealloc.c \
- dwarf_die.c \
- dwarf_dump.c \
- dwarf_errmsg.c \
- dwarf_errno.c \
- dwarf_finish.c \
- dwarf_form.c \
- dwarf_func.c \
- dwarf_init.c \
- dwarf_loc.c
-
-INCS= dwarf.h libdwarf.h
-
-CFLAGS+= -I${.CURDIR}
-
-SHLIB_MAJOR= 3
-
-WITHOUT_MAN=
-
-.include <bsd.lib.mk>
diff -r f7e35bf47e09 -r b8f4887f7f2f external/bsd/libdwarf/dist/_libdwarf.h
--- a/external/bsd/libdwarf/dist/_libdwarf.h Wed Sep 30 00:17:09 2015 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,201 +0,0 @@
-/* $NetBSD: _libdwarf.h,v 1.3 2013/01/17 22:06:58 christos Exp $ */
-
-/*-
- * Copyright (c) 2007 John Birrell (jb%freebsd.org@localhost)
- * 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. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND 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 AUTHOR OR 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.
- *
- * $FreeBSD: src/lib/libdwarf/_libdwarf.h,v 1.3 2012/11/17 01:49:48 svnexp Exp $
- */
-
-#ifndef __LIBDWARF_H_
-#define __LIBDWARF_H_
-
-#include <sys/param.h>
-#include <sys/queue.h>
-#include <stdio.h>
-#include <gelf.h>
-#include "dwarf.h"
-#include "libdwarf.h"
-
-#define DWARF_debug_abbrev 0
-#define DWARF_debug_aranges 1
-#define DWARF_debug_frame 2
-#define DWARF_debug_info 3
-#define DWARF_debug_line 4
-#define DWARF_debug_pubnames 5
-#define DWARF_eh_frame 6
-#define DWARF_debug_macinfo 7
-#define DWARF_debug_str 8
-#define DWARF_debug_loc 9
-#define DWARF_debug_pubtypes 10
-#define DWARF_debug_ranges 11
-#define DWARF_debug_static_func 12
-#define DWARF_debug_static_vars 13
-#define DWARF_debug_types 14
-#define DWARF_debug_weaknames 15
-#define DWARF_symtab 16
-#define DWARF_strtab 17
-#define DWARF_DEBUG_SNAMES 18
-
-#define DWARF_DIE_HASH_SIZE 8191
-
-#define DWARF_SET_ERROR(_e, _err) do { \
- _e->err_error = _err; \
- _e->elf_error = 0; \
- _e->err_func = __func__; \
- _e->err_line = __LINE__; \
- _e->err_msg[0] = '\0'; \
- } while (/*CONSTCOND*/0)
-
-#define DWARF_SET_ELF_ERROR(_e, _err) do { \
- _e->err_error = DWARF_E_ELF; \
- _e->elf_error = _err; \
- _e->err_func = __func__; \
- _e->err_line = __LINE__; \
- _e->err_msg[0] = '\0'; \
- } while (/*CONSTCOND*/0)
-
-struct _Dwarf_AttrValue {
- uint64_t av_attrib; /* DW_AT_ */
- uint64_t av_form; /* DW_FORM_ */
- union {
- uint64_t u64;
- int64_t s64;
- const char *s;
- uint8_t *u8p;
- } u[2]; /* Value. */
- STAILQ_ENTRY(_Dwarf_AttrValue)
- av_next; /* Next attribute value. */
-};
-
-struct _Dwarf_Die {
- int die_level; /* Parent-child level. */
- uint64_t die_offset; /* DIE offset in section. */
- uint64_t die_abnum; /* Abbrev number. */
- Dwarf_Abbrev die_a; /* Abbrev pointer. */
- Dwarf_CU die_cu; /* Compilation unit pointer. */
- const char *die_name; /* Ptr to the name string. */
- STAILQ_HEAD(, _Dwarf_AttrValue)
- die_attrval; /* List of attribute values. */
- STAILQ_ENTRY(_Dwarf_Die)
- die_next; /* Next die in list. */
- STAILQ_ENTRY(_Dwarf_Die)
- die_hash; /* Next die in hash table. */
-};
-
-struct _Dwarf_Attribute {
- uint64_t at_attrib; /* DW_AT_ */
- uint64_t at_form; /* DW_FORM_ */
- STAILQ_ENTRY(_Dwarf_Attribute)
- at_next; /* Next attribute. */
-};
-
-struct _Dwarf_Abbrev {
- uint64_t a_entry; /* Abbrev entry. */
- uint64_t a_tag; /* Tag: DW_TAG_ */
- uint8_t a_children; /* DW_CHILDREN_no or DW_CHILDREN_yes */
- STAILQ_HEAD(, _Dwarf_Attribute)
- a_attrib; /* List of attributes. */
- STAILQ_ENTRY(_Dwarf_Abbrev)
- a_next; /* Next abbrev. */
-};
-
-struct _Dwarf_CU {
- uint64_t cu_offset; /* Offset to the this compilation unit. */
- uint32_t cu_length; /* Length of CU data. */
- uint32_t cu_header_length;
- /* Length of the CU header. */
- uint16_t cu_version; /* DWARF version. */
- uint64_t cu_abbrev_offset;
- /* Offset into .debug_abbrev. */
- uint8_t cu_pointer_size;
- /* Number of bytes in pointer. */
- uint64_t cu_next_offset;
- /* Offset to the next compilation unit. */
- STAILQ_HEAD(, _Dwarf_Abbrev)
- cu_abbrev; /* List of abbrevs. */
- STAILQ_HEAD(, _Dwarf_Die)
- cu_die; /* List of dies. */
- STAILQ_HEAD(, _Dwarf_Die)
- cu_die_hash[DWARF_DIE_HASH_SIZE];
- /* Hash of dies. */
- STAILQ_ENTRY(_Dwarf_CU)
- cu_next; /* Next compilation unit. */
-};
-
-typedef struct _Dwarf_section {
- Elf_Scn *s_scn; /* Section pointer. */
- GElf_Shdr s_shdr; /* Copy of the section header. */
- char *s_sname; /* Ptr to the section name. */
- uint32_t s_shnum; /* Section number. */
- Elf_Data *s_data; /* Section data. */
-} Dwarf_section;
-
-struct _Dwarf_Debug {
- Elf *dbg_elf; /* Ptr to the ELF handle. */
- GElf_Ehdr dbg_ehdr; /* Copy of the ELF header. */
- int dbg_elf_close; /* True if elf_end() required. */
- int dbg_mode; /* Access mode. */
- size_t dbg_stnum; /* Section header string table section number. */
- int dbg_offsize; /* DWARF offset size. */
- Dwarf_section dbg_s[DWARF_DEBUG_SNAMES];
- /* Array of section information. */
- STAILQ_HEAD(, _Dwarf_CU)
- dbg_cu; /* List of compilation units. */
- Dwarf_CU dbg_cu_current;
- /* Ptr to the current compilation unit. */
-
- STAILQ_HEAD(, _Dwarf_Func) dbg_func; /* List of functions */
-};
-
-struct _Dwarf_Func {
- Dwarf_Die func_die;
- const char *func_name;
- Dwarf_Addr func_low_pc;
- Dwarf_Addr func_high_pc;
- int func_is_inlined;
- /* inlined instance */
- STAILQ_HEAD(, _Dwarf_Inlined_Func) func_inlined_instances;
- STAILQ_ENTRY(_Dwarf_Func) func_next;
-};
-
-struct _Dwarf_Inlined_Func {
- struct _Dwarf_Func *ifunc_origin;
- Dwarf_Die ifunc_abstract;
- Dwarf_Die ifunc_concrete;
- Dwarf_Addr ifunc_low_pc;
- Dwarf_Addr ifunc_high_pc;
- STAILQ_ENTRY(_Dwarf_Inlined_Func) ifunc_next;
-};
-
-void dwarf_build_function_table(Dwarf_Debug dbg);
-
-#ifdef DWARF_DEBUG
-#include <assert.h>
-#define DWARF_ASSERT(x) assert(x)
-#else
-#define DWARF_ASSERT(x)
-#endif
-
-#endif /* !__LIBDWARF_H_ */
diff -r f7e35bf47e09 -r b8f4887f7f2f external/bsd/libdwarf/dist/dwarf.h
--- a/external/bsd/libdwarf/dist/dwarf.h Wed Sep 30 00:17:09 2015 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,481 +0,0 @@
-/* $NetBSD: dwarf.h,v 1.1.1.2 2013/01/17 22:03:02 christos Exp $ */
-
-/*-
- * Copyright (c) 2007 John Birrell (jb%freebsd.org@localhost)
- * 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. Redistributions in binary form must reproduce the above copyright
- *notice, this list of conditions and the following disclaimer in the
- *documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND 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 AUTHOR OR 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.
- *
- * $FreeBSD: src/lib/libdwarf/dwarf.h,v 1.3 2012/11/17 01:49:48 svnexp Exp $
- */
-
-#ifndef _DWARF_H_
-#define _DWARF_H_
-
-#define DW_TAG_array_type 0x01
Home |
Main Index |
Thread Index |
Old Index