diff options
author | ryoon <ryoon@pkgsrc.org> | 2018-10-01 12:36:35 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2018-10-01 12:36:35 +0000 |
commit | 0f6ac200fa87c285c69f6bc911d86c815b439512 (patch) | |
tree | 7b17a1de1a82e251284c08d8c66db78e2f945b10 /devel/elftoolchain | |
parent | 43a172b5e0751671014418614f62e77e7f881413 (diff) | |
download | pkgsrc-0f6ac200fa87c285c69f6bc911d86c815b439512.tar.gz |
Update to 0.7.1
Changelog:
Release Notes for Elftoolchain Software Version 0.7.1
=====================================================
About The Project
-----------------
The `Elftoolchain project`_ develops BSD-licensed implementations of
essential compilation tools and libraries for handling ELF based program
objects.
About The Release
-----------------
This is the first release on the v0.7 "stable" code line.
Since the prior v0.6.1 release, we have added support for a few more
machine architectures, improved our support of the DWARF4 debug format,
and have added experimental support for the Microsoft (TM) Portable
Executable format. A number of bugs have been fixed, and the project's
documentation has been improved. An implementation of a link editor
**ld** is in progress.
Libraries and Utilities
~~~~~~~~~~~~~~~~~~~~~~~
This release comprises the following libraries and utilities.
================= ==========================================
**Name** **Description**
================= ==========================================
**ar** Archive manager.
**addr2line** Debug tool.
**brandelf** Manage the ELF brand on executables.
**c++filt** Translate encoded symbols.
**elfcopy** Copy and translate between object formats.
**elfdump** Diagnostic tool.
**findtextrel** Find undesired text relocations.
**libdwarf** DWARF access library.
**libelf** ELF access library.
**mcs** Manage comment sections.
**nm** List symbols in an ELF object.
**ranlib** Add archive symbol tables to an archive.
**readelf** Display ELF information.
**size** List object sizes.
**strings** Extract printable strings.
**strip** Discard information from ELF objects.
================= ==========================================
This release also contains the following software that is under
development:
================= ==========================================
**Name** **Description**
================= ==========================================
**ld** Program linker.
**libpe** PE (Portable Executable) access library.
================= ==========================================
Documentation
~~~~~~~~~~~~~
Each public API and invocable utility has a reference manual entry.
We currently offer 355 manual entries, documented in 197 manual pages.
Additionally, this release contains the following documentation:
================= ==========================================
**Name** **Description**
================= ==========================================
libelf-by-example A tutorial introduction to **libelf**.
================= ==========================================
Test Suites
~~~~~~~~~~~
The release contains the following test suites:
================= ==========================================
**Name** **Description**
================= ==========================================
ar Test the **ar** utility.
elfcopy Test the **elfcopy** utility.
elfdump Test the **elfdump** utility.
libdwarf Test the **libdwarf** library.
libelf Test the **libelf** library.
libelftc Test the **libelftc** support library.
nm Test the **nm** utility.
================= ==========================================
System Requirements
-------------------
This software is designed to run on Unix(TM)-like operating systems
such as the BSD-family of operating systems and GNU/Linux.
This release has been built and tested on the following operating
systems:
==================== =========== ===========================
**Operating System** **Version** **Supported Architectures**
-------------------- ----------- ---------------------------
FreeBSD_ 10.2 amd64 & i386
NetBSD_ 7.0 i386
Ubuntu_ GNU/Linux 14.04LTS x86_64
==================== =========== ===========================
Installation and Upgrades
=========================
Installation
------------
Instructions for building and installing this software from source are
described in the file "INSTALL".
Upgrading
---------
* Consumers of the libdwarf API should note that the `Dwarf_Off` type
has changed to an unsigned type, so as to be compatible with other
open-source libdwarf implementations.
* Three functions in the libdwarf API have been deprecated and two
extension APIs have been added.
Release Information
===================
Changes in this release
-----------------------
Significant changes include:
* **addr2line**
- Support the ``DW_AT_ranges`` debug attribute.
- Improve DWARF4 compatibility.
- **addr2line** supports new options ``-a``, ``-i``, ``-p``.
- Compilation units lacking debug information are handled more robustly.
- Memory leaks were fixed.
* **ar/ranlib**
- The **ranlib** utility is now documented in its own manual page.
- The handling of corrupt archives has been improved.
- **ar** now supports a ``-U`` option that disables its
deterministic (``-D``) mode.
- **ar** no longer allows extraction of archive entries whose
pathnames contain ``..``, or whose target directory would be
altered by a symbolic link.
* **brandelf**
- The documentation for **brandelf** has been improved.
* **elfcopy/strip/mcs**
- **strip** no longer strips local debugging symbols when the ``-x``
option is specified.
- Compatibility with GNU binutils has been improved.
- The **elfcopy** and **strip** utilities will now preserve hard
links when modifying an object file.
- Support for new functionality controlled by options
``--localize-hidden``, ``--extract-dwo`` and ``--strip-dwo`` has
been added.
- Bugs in the behavior of the ``-N`` and ``-X`` options were fixed.
- Nameless global symbols are now handled correctly.
- ``SHT_GROUP`` handling has been fixed in **elfcopy** and
**strip**.
- **elfcopy** now supports the conversion of ELF objects to PE images.
* **elfdump**
- **elfdump** can now dump multiple GOT sections.
- **elfdump** now understands the ``EM_AARCH64``, ``EM_IAMCU``,
``EM_PPC64``, and ``EM_RISCV`` machine types and the
``STT_SPARC_REGISTER`` section type.
- Symbols with ``STB_GNU_UNIQUE`` are now supported.
* **findtextrel**
- The manual pages were improved.
* **ld**
- This utility is new in this release. This utility is currently under
development, and should be considered unstable.
* **libdwarf**
- The line number program generated by **libdwarf** has been improved.
- Support for the DWARF4 ``.debug_types`` section was added.
- Parsing of DWARF4 line sections was fixed.
- New APIs ``dwarf_attroffset()``,
``dwarf_get_cu_die_offset_given_cu_header_offset_b()``,
``dwarf_get_die_infotypes_flag()``,
``dwarf_get_section_max_offsets()``,
``dwarf_get_section_max_offsets_b()``, ``dwarf_highpc_b()``,
``dwarf_loclist_from_expr_b()``, ``dwarf_next_types_section()``,
``dwarf_offdie_b()``, and ``dwarf_siblingof_b()`` have been added.
Of these, ``dwarf_attroffset()`` and ``dwarf_next_types_section()``
are extensions to the SGI libdwarf API.
- Support for operators ``DW_OP_GNU_addr_index``,
``DW_OP_GNU_const_index``, ``DW_OP_GNU_const_type``,
``DW_OP_GNU_convert``, ``DW_OP_GNU_deref_type``,
``DW_OP_GNU_encoded_addr``, ``DW_OP_GNU_entry_value``,
``DW_OP_GNU_implicit_pointer``, ``DW_OP_GNU_parameter_ref``,
``DW_OP_GNU_regval_type``, ``DW_OP_GNU_reinterpret``,
``DW_OP_GNU_uninit`` and ``DW_OP_push_object_address`` have been
added.
- APIs ``dwarf_get_cu_die_offset_given_cu_header_offset()``,
``dwarf_offdie()``, ``dwarf_siblingof()`` have been deprecated.
- **libdwarf** now supports relocation for the ``aarch64``
architecture.
- **libdwarf** now handles architectures that use ".rel" relocations
for debug data correctly.
- The ``EM_IAMCU`` architecture is now recognized.
- Documentation has been improved, memory leaks and other bugs have
been fixed.
* **libelf**
- Reference documentation has been improved.
- Support building on the AARCH64 architecture has added.
- Bug fixes have been applied.
* **libelf-by-example**
- No changes since the prior release.
* **libelftc**
- Support for the Portable Executable format has been added.
- Overview documentation for this support library has been added.
- New APIs ``elftc_string_table_from_section()``.
``elftc_string_table_image()``, ``elftc_string_table_insert()``,
``elftc_string_table_lookup()``, ``elftc_string_table_remove()``
and ``elftc_string_table_to_string()`` have been added.
- The demangling support functions now support IEEE floating point
types, TLS special names and various GNU extensions.
- Other bugs have fixed.
* **libpe**
- This library is new in this release. This library is currently
under development, and should be considered unstable.
* **nm**
- A new alias ``--extern-only`` for option ``-g`` is now supported.
- Bugs have been fixed.
* **readelf**
- The handling of objects with missing symbol names was improved.
- **readelf** now supports dumping ``.debug_types`` sections.
- The ``DW_AT_language``, ``DW_FORM_exprloc``,
``DW_FORM_flag_present``, ``DW_FORM_ref_sig8`` and
``DW_FORM_sec_offset`` types are now supported.
- GNU DWARF operator extensions are now recognized by **readelf**.
- **readelf** can now display architecture specific register names on
some architectures.
- **readelf** now handles AArch64 types and relocations and
recognizes the ``RISC-V`` and ``IAMCU`` architectures.
- Support has been added for printing binary notes for FreeBSD, Xen
and Linux, and for printing core notes for FreeBSD and Linux.
- Support for dumping symbols with the ``STB_GNU_UNIQUE`` binding
has been added.
- Support for dumping symbols with the ``STT_SPARC_REGISTER``
register type has been added.
* **size**
- The manual page for **size** has been improved.
* **strings**
- The manual page for **strings** has been improved.
Outstanding Issues
------------------
There were no outstanding issues at the time of the release.
Known Limitations
-----------------
This release has the following limitations:
:Test coverage:
Our test suites are being developed; test coverage is still
partial.
:Performance and Memory Use:
Our tools have not been fully analyzed for their memory use or for
their performance characteristics.
Test Statistics
---------------
The test summary for this release is presented below:
========= ========== =============== ================ ===================
**Suite** **Tests** **FreeBSD** **NetBSD** **Ubuntu 10.04LTS**
(32&64bit) (i386 & amd64) (i386) (x86_64)
========= ========== =============== ================ ===================
ar 235 & 230 P:235 & 230 P:235 P:230
elfcopy 160 P:160 P:160 P:160
elfdump 155 P:155 P:155 P:155
libdwarf 153 P:153 P:153 P:153
libelf 1030 P:1026, U:4 P:1026, U:4 P:1026, U:4
libelftc 16 P:16 P:16 P:16
nm 183 P:183 P:183 P:183
========= ========== =============== ================ ===================
Key:
:P:
Test successes.
:F:
Test failures.
:U:
Unresolved tests.
Notes
~~~~~
More Information
================
The project's website is at http://elftoolchain.sourceforge.net/.
Developer Community
-------------------
The project's developers may be contacted using the mailing list:
``<elftoolchain-developers@lists.sourceforge.net>``.
Reporting Bugs
--------------
Please use our `bug tracker`_ for viewing existing bug reports and
for submitting new bug reports.
Copyright and License
=====================
This software is copyright its authors, and is distributed under the
`BSD License`_.
.. _BSD License: http://www.opensource.org/licenses/bsd-license.php
.. _`bug tracker`: https://sourceforge.net/p/elftoolchain/tickets/
.. _Elftoolchain project: http://elftoolchain.sourceforge.net/
.. _FreeBSD: http://www.freebsd.org/
.. _NetBSD: http://www.netbsd.org/
.. _Ubuntu: http://www.ubuntu.com/
.. Local Variables:
.. mode: rst
.. End:
Diffstat (limited to 'devel/elftoolchain')
22 files changed, 80 insertions, 758 deletions
diff --git a/devel/elftoolchain/Makefile b/devel/elftoolchain/Makefile index 71e56e0567d..389f04f8cfd 100644 --- a/devel/elftoolchain/Makefile +++ b/devel/elftoolchain/Makefile @@ -1,9 +1,8 @@ -# $NetBSD: Makefile,v 1.13 2017/05/31 22:14:43 agc Exp $ +# $NetBSD: Makefile,v 1.14 2018/10/01 12:36:35 ryoon Exp $ -DISTNAME= elftoolchain-0.5.1 -PKGREVISION= 1 +DISTNAME= elftoolchain-0.7.1 CATEGORIES= devel -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=elftoolchain/${DISTNAME}/} +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=elftoolchain/} EXTRACT_SUFX= .tar.bz2 MAINTAINER= agc@NetBSD.org @@ -21,13 +20,15 @@ USE_BSD_MAKEFILE= yes USE_TOOLS+= m4 lex MAKE_ENV+= ${BSD_MAKE_ENV} MAKE_FLAGS+= MKPROFILE=yes +MAKE_FLAGS+= INCSDIR=${PREFIX}/include .include "../../mk/compiler.mk" .if !empty(PKGSRC_COMPILER:Mgcc) CWARNFLAGS+= -Wno-error=sign-conversion \ -Wno-error=conversion \ -Wno-error=unused-but-set-variable \ - -Wno-error=old-style-definition + -Wno-error=old-style-definition \ + -Wno-error=shift-negative-value .elif !empty(PKGSRC_COMPILER:Mclang) CWARNFLAGS+= -Wno-error=missing-noreturn \ -Wno-error=constant-logical-operand \ @@ -35,7 +36,7 @@ CWARNFLAGS+= -Wno-error=missing-noreturn \ .endif MAKE_FLAGS+= CWARNFLAGS=${CWARNFLAGS:Q} -INSTALLATION_DIRS= bin lib +INSTALLATION_DIRS= bin include lib INSTALLATION_DIRS+= ${PKGMANDIR}/man1 ${PKGMANDIR}/cat1 ${PKGMANDIR}/html1 INSTALLATION_DIRS+= ${PKGMANDIR}/man3 ${PKGMANDIR}/cat3 ${PKGMANDIR}/html3 INSTALLATION_DIRS+= ${PKGMANDIR}/man5 ${PKGMANDIR}/cat5 ${PKGMANDIR}/html5 diff --git a/devel/elftoolchain/PLIST b/devel/elftoolchain/PLIST index 92962dbe529..f22aea452b0 100644 --- a/devel/elftoolchain/PLIST +++ b/devel/elftoolchain/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.2 2011/11/26 15:50:27 dholland Exp $ +@comment $NetBSD: PLIST,v 1.3 2018/10/01 12:36:35 ryoon Exp $ bin/addr2line bin/ar bin/brandelf @@ -6,6 +6,7 @@ bin/c++filt bin/elfcopy bin/elfdump bin/findtextrel +bin/ld bin/mcs bin/nm bin/ranlib @@ -13,6 +14,14 @@ bin/readelf bin/size bin/strings bin/strip +include/dwarf.h +include/elfdefinitions.h +include/gelf.h +include/libdwarf.h +include/libelf.h +include/libelftc.h +include/libpe.h +include/pe.h lib/libdwarf.a lib/libdwarf.so lib/libdwarf.so.3 @@ -31,336 +40,11 @@ lib/libelftc.so.1 lib/libelftc.so.1.0 lib/libelftc_p.a lib/libelftc_pic.a -man/cat1/addr2line.0 -man/cat1/ar.0 -man/cat1/brandelf.0 -man/cat1/c++filt.0 -man/cat1/elfcopy.0 -man/cat1/elfdump.0 -man/cat1/findtextrel.0 -man/cat1/mcs.0 -man/cat1/nm.0 -man/cat1/ranlib.0 -man/cat1/readelf.0 -man/cat1/size.0 -man/cat1/strings.0 -man/cat1/strip.0 -man/cat3/dwarf_add_AT_comp_dir.0 -man/cat3/dwarf_add_AT_const_value_signedint.0 -man/cat3/dwarf_add_AT_const_value_string.0 -man/cat3/dwarf_add_AT_const_value_unsignedint.0 -man/cat3/dwarf_add_AT_dataref.0 -man/cat3/dwarf_add_AT_flag.0 -man/cat3/dwarf_add_AT_location_expr.0 -man/cat3/dwarf_add_AT_name.0 -man/cat3/dwarf_add_AT_producer.0 -man/cat3/dwarf_add_AT_ref_address.0 -man/cat3/dwarf_add_AT_reference.0 -man/cat3/dwarf_add_AT_signed_const.0 -man/cat3/dwarf_add_AT_string.0 -man/cat3/dwarf_add_AT_targ_address.0 -man/cat3/dwarf_add_AT_targ_address_b.0 -man/cat3/dwarf_add_AT_unsigned_const.0 -man/cat3/dwarf_add_arange.0 -man/cat3/dwarf_add_arange_b.0 -man/cat3/dwarf_add_die_to_debug.0 -man/cat3/dwarf_add_directory_decl.0 -man/cat3/dwarf_add_expr_addr.0 -man/cat3/dwarf_add_expr_addr_b.0 -man/cat3/dwarf_add_expr_gen.0 -man/cat3/dwarf_add_fde_inst.0 -man/cat3/dwarf_add_file_decl.0 -man/cat3/dwarf_add_frame_cie.0 -man/cat3/dwarf_add_frame_fde.0 -man/cat3/dwarf_add_frame_fde_b.0 -man/cat3/dwarf_add_funcname.0 -man/cat3/dwarf_add_line_entry.0 -man/cat3/dwarf_add_pubname.0 -man/cat3/dwarf_add_typename.0 -man/cat3/dwarf_add_varname.0 -man/cat3/dwarf_add_weakname.0 -man/cat3/dwarf_arrayorder.0 -man/cat3/dwarf_attr.0 -man/cat3/dwarf_attrlist.0 -man/cat3/dwarf_attrval_flag.0 -man/cat3/dwarf_attrval_signed.0 -man/cat3/dwarf_attrval_string.0 -man/cat3/dwarf_attrval_unsigned.0 -man/cat3/dwarf_bitoffset.0 -man/cat3/dwarf_bitsize.0 -man/cat3/dwarf_bytesize.0 -man/cat3/dwarf_child.0 -man/cat3/dwarf_dealloc.0 -man/cat3/dwarf_def_macro.0 -man/cat3/dwarf_die_CU_offset.0 -man/cat3/dwarf_die_CU_offset_range.0 -man/cat3/dwarf_die_abbrev_code.0 -man/cat3/dwarf_die_link.0 -man/cat3/dwarf_diename.0 -man/cat3/dwarf_dieoffset.0 -man/cat3/dwarf_elf_init.0 -man/cat3/dwarf_end_macro_file.0 -man/cat3/dwarf_errmsg.0 -man/cat3/dwarf_errno.0 -man/cat3/dwarf_expand_frame_instructions.0 -man/cat3/dwarf_expr_current_offset.0 -man/cat3/dwarf_expr_into_block.0 -man/cat3/dwarf_fde_cfa_offset.0 -man/cat3/dwarf_fde_cie_list_dealloc.0 -man/cat3/dwarf_find_macro_value_start.0 -man/cat3/dwarf_finish.0 -man/cat3/dwarf_formaddr.0 -man/cat3/dwarf_formblock.0 -man/cat3/dwarf_formexprloc.0 -man/cat3/dwarf_formflag.0 -man/cat3/dwarf_formref.0 -man/cat3/dwarf_formsdata.0 -man/cat3/dwarf_formsig8.0 -man/cat3/dwarf_formstring.0 -man/cat3/dwarf_formudata.0 -man/cat3/dwarf_func_cu_offset.0 -man/cat3/dwarf_func_die_offset.0 -man/cat3/dwarf_func_name_offsets.0 -man/cat3/dwarf_funcname.0 -man/cat3/dwarf_funcs_dealloc.0 -man/cat3/dwarf_get_ACCESS_name.0 -man/cat3/dwarf_get_ATE_name.0 -man/cat3/dwarf_get_AT_name.0 -man/cat3/dwarf_get_CC_name.0 -man/cat3/dwarf_get_CFA_name.0 -man/cat3/dwarf_get_CHILDREN_name.0 -man/cat3/dwarf_get_DSC_name.0 -man/cat3/dwarf_get_DS_name.0 -man/cat3/dwarf_get_EH_name.0 -man/cat3/dwarf_get_END_name.0 -man/cat3/dwarf_get_FORM_name.0 -man/cat3/dwarf_get_ID_name.0 -man/cat3/dwarf_get_INL_name.0 -man/cat3/dwarf_get_LANG_name.0 -man/cat3/dwarf_get_LNE_name.0 -man/cat3/dwarf_get_LNS_name.0 -man/cat3/dwarf_get_MACINFO_name.0 -man/cat3/dwarf_get_OP_name.0 -man/cat3/dwarf_get_ORD_name.0 -man/cat3/dwarf_get_TAG_name.0 -man/cat3/dwarf_get_VIRTUALITY_name.0 -man/cat3/dwarf_get_VIS_name.0 -man/cat3/dwarf_get_abbrev.0 -man/cat3/dwarf_get_abbrev_children_flag.0 -man/cat3/dwarf_get_abbrev_code.0 -man/cat3/dwarf_get_abbrev_entry.0 -man/cat3/dwarf_get_abbrev_tag.0 -man/cat3/dwarf_get_address_size.0 -man/cat3/dwarf_get_arange.0 -man/cat3/dwarf_get_arange_cu_header_offset.0 -man/cat3/dwarf_get_arange_info.0 -man/cat3/dwarf_get_aranges.0 -man/cat3/dwarf_get_cie_index.0 -man/cat3/dwarf_get_cie_info.0 -man/cat3/dwarf_get_cie_of_fde.0 -man/cat3/dwarf_get_cu_die_offset.0 -man/cat3/dwarf_get_cu_die_offset_given_cu_header_offset.0 -man/cat3/dwarf_get_elf.0 -man/cat3/dwarf_get_fde_at_pc.0 -man/cat3/dwarf_get_fde_info_for_all_regs.0 -man/cat3/dwarf_get_fde_info_for_all_regs3.0 -man/cat3/dwarf_get_fde_info_for_cfa_reg3.0 -man/cat3/dwarf_get_fde_info_for_reg.0 -man/cat3/dwarf_get_fde_info_for_reg3.0 -man/cat3/dwarf_get_fde_instr_bytes.0 -man/cat3/dwarf_get_fde_list.0 -man/cat3/dwarf_get_fde_list_eh.0 -man/cat3/dwarf_get_fde_n.0 -man/cat3/dwarf_get_fde_range.0 -man/cat3/dwarf_get_form_class.0 -man/cat3/dwarf_get_funcs.0 -man/cat3/dwarf_get_globals.0 -man/cat3/dwarf_get_loclist_entry.0 -man/cat3/dwarf_get_macro_details.0 -man/cat3/dwarf_get_pubtypes.0 -man/cat3/dwarf_get_ranges.0 -man/cat3/dwarf_get_ranges_a.0 -man/cat3/dwarf_get_relocation_info.0 -man/cat3/dwarf_get_relocation_info_count.0 -man/cat3/dwarf_get_section_bytes.0 -man/cat3/dwarf_get_str.0 -man/cat3/dwarf_get_types.0 -man/cat3/dwarf_get_vars.0 -man/cat3/dwarf_get_weaks.0 -man/cat3/dwarf_global_cu_offset.0 -man/cat3/dwarf_global_die_offset.0 -man/cat3/dwarf_global_formref.0 -man/cat3/dwarf_global_name_offsets.0 -man/cat3/dwarf_globals_dealloc.0 -man/cat3/dwarf_globname.0 -man/cat3/dwarf_hasattr.0 -man/cat3/dwarf_hasform.0 -man/cat3/dwarf_highpc.0 -man/cat3/dwarf_init.0 -man/cat3/dwarf_line_srcfileno.0 -man/cat3/dwarf_lineaddr.0 -man/cat3/dwarf_linebeginstatement.0 -man/cat3/dwarf_lineblock.0 -man/cat3/dwarf_lineendsequence.0 -man/cat3/dwarf_lineno.0 -man/cat3/dwarf_lineoff.0 -man/cat3/dwarf_linesrc.0 -man/cat3/dwarf_lne_end_sequence.0 -man/cat3/dwarf_lne_set_address.0 -man/cat3/dwarf_loclist.0 -man/cat3/dwarf_loclist_from_expr.0 -man/cat3/dwarf_loclist_from_expr_a.0 -man/cat3/dwarf_loclist_n.0 -man/cat3/dwarf_lowpc.0 -man/cat3/dwarf_new_die.0 -man/cat3/dwarf_new_expr.0 -man/cat3/dwarf_new_fde.0 -man/cat3/dwarf_next_cu_header.0 -man/cat3/dwarf_object_finish.0 -man/cat3/dwarf_object_init.0 -man/cat3/dwarf_offdie.0 -man/cat3/dwarf_producer_init.0 -man/cat3/dwarf_producer_init_b.0 -man/cat3/dwarf_producer_set_isa.0 -man/cat3/dwarf_pubtype_cu_offset.0 -man/cat3/dwarf_pubtype_die_offset.0 -man/cat3/dwarf_pubtype_name_offsets.0 -man/cat3/dwarf_pubtypename.0 -man/cat3/dwarf_pubtypes_dealloc.0 -man/cat3/dwarf_ranges_dealloc.0 -man/cat3/dwarf_reset_section_bytes.0 -man/cat3/dwarf_set_frame_cfa_value.0 -man/cat3/dwarf_set_frame_rule_initial_value.0 -man/cat3/dwarf_set_frame_rule_table_size.0 -man/cat3/dwarf_set_frame_same_value.0 -man/cat3/dwarf_set_frame_undefined_value.0 -man/cat3/dwarf_set_reloc_application.0 -man/cat3/dwarf_seterrarg.0 -man/cat3/dwarf_seterrhand.0 -man/cat3/dwarf_siblingof.0 -man/cat3/dwarf_srcfiles.0 -man/cat3/dwarf_srclang.0 -man/cat3/dwarf_srclines.0 -man/cat3/dwarf_srclines_dealloc.0 -man/cat3/dwarf_start_macro_file.0 -man/cat3/dwarf_tag.0 -man/cat3/dwarf_transform_to_disk_form.0 -man/cat3/dwarf_type_cu_offset.0 -man/cat3/dwarf_type_die_offset.0 -man/cat3/dwarf_type_name_offsets.0 -man/cat3/dwarf_typename.0 -man/cat3/dwarf_types_dealloc.0 -man/cat3/dwarf_undef_macro.0 -man/cat3/dwarf_var_cu_offset.0 -man/cat3/dwarf_var_die_offset.0 -man/cat3/dwarf_var_name_offsets.0 -man/cat3/dwarf_varname.0 -man/cat3/dwarf_vars_dealloc.0 -man/cat3/dwarf_vendor_ext.0 -man/cat3/dwarf_weak_cu_offset.0 -man/cat3/dwarf_weak_die_offset.0 -man/cat3/dwarf_weak_name_offsets.0 -man/cat3/dwarf_weakname.0 -man/cat3/dwarf_weaks_dealloc.0 -man/cat3/dwarf_whatattr.0 -man/cat3/dwarf_whatform.0 -man/cat3/dwarf_whatform_direct.0 -man/cat3/elf.0 -man/cat3/elf32_checksum.0 -man/cat3/elf32_fsize.0 -man/cat3/elf32_getehdr.0 -man/cat3/elf32_getphdr.0 -man/cat3/elf32_getshdr.0 -man/cat3/elf32_newehdr.0 -man/cat3/elf32_newphdr.0 -man/cat3/elf32_xlatetof.0 -man/cat3/elf32_xlatetom.0 -man/cat3/elf64_checksum.0 -man/cat3/elf64_fsize.0 -man/cat3/elf64_getehdr.0 -man/cat3/elf64_getphdr.0 -man/cat3/elf64_getshdr.0 -man/cat3/elf64_newehdr.0 -man/cat3/elf64_newphdr.0 -man/cat3/elf64_xlatetof.0 -man/cat3/elf64_xlatetom.0 -man/cat3/elf_begin.0 -man/cat3/elf_cntl.0 -man/cat3/elf_end.0 -man/cat3/elf_errmsg.0 -man/cat3/elf_errno.0 -man/cat3/elf_fill.0 -man/cat3/elf_flagarhdr.0 -man/cat3/elf_flagdata.0 -man/cat3/elf_flagehdr.0 -man/cat3/elf_flagelf.0 -man/cat3/elf_flagphdr.0 -man/cat3/elf_flagscn.0 -man/cat3/elf_flagshdr.0 -man/cat3/elf_getarhdr.0 -man/cat3/elf_getarsym.0 -man/cat3/elf_getbase.0 -man/cat3/elf_getdata.0 -man/cat3/elf_getident.0 -man/cat3/elf_getphdrnum.0 -man/cat3/elf_getphnum.0 -man/cat3/elf_getscn.0 -man/cat3/elf_getshdrnum.0 -man/cat3/elf_getshdrstrndx.0 -man/cat3/elf_getshnum.0 -man/cat3/elf_getshstrndx.0 -man/cat3/elf_hash.0 -man/cat3/elf_kind.0 -man/cat3/elf_memory.0 -man/cat3/elf_ndxscn.0 -man/cat3/elf_newdata.0 -man/cat3/elf_newscn.0 -man/cat3/elf_next.0 -man/cat3/elf_nextscn.0 -man/cat3/elf_rand.0 -man/cat3/elf_rawdata.0 -man/cat3/elf_rawfile.0 -man/cat3/elf_setshstrndx.0 -man/cat3/elf_strptr.0 -man/cat3/elf_update.0 -man/cat3/elf_version.0 -man/cat3/elftc_bfd_find_target.0 -man/cat3/elftc_bfd_target_byteorder.0 -man/cat3/elftc_bfd_target_class.0 -man/cat3/elftc_bfd_target_flavor.0 -man/cat3/elftc_demangle.0 -man/cat3/elftc_version.0 -man/cat3/gelf.0 -man/cat3/gelf_checksum.0 -man/cat3/gelf_fsize.0 -man/cat3/gelf_getcap.0 -man/cat3/gelf_getclass.0 -man/cat3/gelf_getdyn.0 -man/cat3/gelf_getehdr.0 -man/cat3/gelf_getmove.0 -man/cat3/gelf_getphdr.0 -man/cat3/gelf_getrel.0 -man/cat3/gelf_getrela.0 -man/cat3/gelf_getshdr.0 -man/cat3/gelf_getsym.0 -man/cat3/gelf_getsyminfo.0 -man/cat3/gelf_getsymshndx.0 -man/cat3/gelf_newehdr.0 -man/cat3/gelf_newphdr.0 -man/cat3/gelf_update_cap.0 -man/cat3/gelf_update_dyn.0 -man/cat3/gelf_update_ehdr.0 -man/cat3/gelf_update_move.0 -man/cat3/gelf_update_phdr.0 -man/cat3/gelf_update_rel.0 -man/cat3/gelf_update_rela.0 -man/cat3/gelf_update_shdr.0 -man/cat3/gelf_update_sym.0 -man/cat3/gelf_update_syminfo.0 -man/cat3/gelf_update_symshndx.0 -man/cat3/gelf_xlatetof.0 -man/cat3/gelf_xlatetom.0 -man/cat5/ar.0 +lib/libpe.a +lib/libpe.so +lib/libpe.so.1 +lib/libpe_p.a +lib/libpe_pic.a man/man1/addr2line.1 man/man1/ar.1 man/man1/brandelf.1 @@ -368,6 +52,7 @@ man/man1/c++filt.1 man/man1/elfcopy.1 man/man1/elfdump.1 man/man1/findtextrel.1 +man/man1/ld.1 man/man1/mcs.1 man/man1/nm.1 man/man1/ranlib.1 @@ -375,6 +60,7 @@ man/man1/readelf.1 man/man1/size.1 man/man1/strings.1 man/man1/strip.1 +man/man3/dwarf.3 man/man3/dwarf_add_AT_comp_dir.3 man/man3/dwarf_add_AT_const_value_signedint.3 man/man3/dwarf_add_AT_const_value_string.3 @@ -412,6 +98,7 @@ man/man3/dwarf_add_weakname.3 man/man3/dwarf_arrayorder.3 man/man3/dwarf_attr.3 man/man3/dwarf_attrlist.3 +man/man3/dwarf_attroffset.3 man/man3/dwarf_attrval_flag.3 man/man3/dwarf_attrval_signed.3 man/man3/dwarf_attrval_string.3 @@ -490,6 +177,8 @@ man/man3/dwarf_get_cie_info.3 man/man3/dwarf_get_cie_of_fde.3 man/man3/dwarf_get_cu_die_offset.3 man/man3/dwarf_get_cu_die_offset_given_cu_header_offset.3 +man/man3/dwarf_get_cu_die_offset_given_cu_header_offset_b.3 +man/man3/dwarf_get_die_infotypes_flag.3 man/man3/dwarf_get_elf.3 man/man3/dwarf_get_fde_at_pc.3 man/man3/dwarf_get_fde_info_for_all_regs.3 @@ -513,6 +202,8 @@ man/man3/dwarf_get_ranges_a.3 man/man3/dwarf_get_relocation_info.3 man/man3/dwarf_get_relocation_info_count.3 man/man3/dwarf_get_section_bytes.3 +man/man3/dwarf_get_section_max_offsets.3 +man/man3/dwarf_get_section_max_offsets_b.3 man/man3/dwarf_get_str.3 man/man3/dwarf_get_types.3 man/man3/dwarf_get_vars.3 @@ -526,6 +217,7 @@ man/man3/dwarf_globname.3 man/man3/dwarf_hasattr.3 man/man3/dwarf_hasform.3 man/man3/dwarf_highpc.3 +man/man3/dwarf_highpc_b.3 man/man3/dwarf_init.3 man/man3/dwarf_line_srcfileno.3 man/man3/dwarf_lineaddr.3 @@ -540,15 +232,20 @@ man/man3/dwarf_lne_set_address.3 man/man3/dwarf_loclist.3 man/man3/dwarf_loclist_from_expr.3 man/man3/dwarf_loclist_from_expr_a.3 +man/man3/dwarf_loclist_from_expr_b.3 man/man3/dwarf_loclist_n.3 man/man3/dwarf_lowpc.3 man/man3/dwarf_new_die.3 man/man3/dwarf_new_expr.3 man/man3/dwarf_new_fde.3 man/man3/dwarf_next_cu_header.3 +man/man3/dwarf_next_cu_header_b.3 +man/man3/dwarf_next_cu_header_c.3 +man/man3/dwarf_next_types_section.3 man/man3/dwarf_object_finish.3 man/man3/dwarf_object_init.3 man/man3/dwarf_offdie.3 +man/man3/dwarf_offdie_b.3 man/man3/dwarf_producer_init.3 man/man3/dwarf_producer_init_b.3 man/man3/dwarf_producer_set_isa.3 @@ -568,6 +265,7 @@ man/man3/dwarf_set_reloc_application.3 man/man3/dwarf_seterrarg.3 man/man3/dwarf_seterrhand.3 man/man3/dwarf_siblingof.3 +man/man3/dwarf_siblingof_b.3 man/man3/dwarf_srcfiles.3 man/man3/dwarf_srclang.3 man/man3/dwarf_srclines.3 @@ -647,6 +345,8 @@ man/man3/elf_newdata.3 man/man3/elf_newscn.3 man/man3/elf_next.3 man/man3/elf_nextscn.3 +man/man3/elf_open.3 +man/man3/elf_openmemory.3 man/man3/elf_rand.3 man/man3/elf_rawdata.3 man/man3/elf_rawfile.3 @@ -654,11 +354,20 @@ man/man3/elf_setshstrndx.3 man/man3/elf_strptr.3 man/man3/elf_update.3 man/man3/elf_version.3 +man/man3/elftc.3 man/man3/elftc_bfd_find_target.3 man/man3/elftc_bfd_target_byteorder.3 man/man3/elftc_bfd_target_class.3 man/man3/elftc_bfd_target_flavor.3 +man/man3/elftc_copyfile.3 man/man3/elftc_demangle.3 +man/man3/elftc_set_timestamps.3 +man/man3/elftc_string_table_create.3 +man/man3/elftc_string_table_destroy.3 +man/man3/elftc_string_table_from_section.3 +man/man3/elftc_string_table_image.3 +man/man3/elftc_string_table_insert.3 +man/man3/elftc_string_table_lookup.3 man/man3/elftc_version.3 man/man3/gelf.3 man/man3/gelf_checksum.3 @@ -694,3 +403,6 @@ man/man5/ar.5 @pkgdir man/html5 @pkgdir man/html3 @pkgdir man/html1 +@pkgdir man/cat5 +@pkgdir man/cat3 +@pkgdir man/cat1 diff --git a/devel/elftoolchain/distinfo b/devel/elftoolchain/distinfo index 0ebd7f96859..bfc956fa34c 100644 --- a/devel/elftoolchain/distinfo +++ b/devel/elftoolchain/distinfo @@ -1,27 +1,11 @@ -$NetBSD: distinfo,v 1.6 2017/05/31 22:14:43 agc Exp $ +$NetBSD: distinfo,v 1.7 2018/10/01 12:36:35 ryoon Exp $ -SHA1 (elftoolchain-0.5.1.tar.bz2) = 333cfce857ca220177d0a5d111d40afca1eea0c7 -RMD160 (elftoolchain-0.5.1.tar.bz2) = 4be0adf8349c764474810e23cfb022c655002d77 -SHA512 (elftoolchain-0.5.1.tar.bz2) = 4f682ee183c5b475fd50856254f547530c922a7fcdd150233f39628a712dd8b84e5c94663a51f1f5ce85c828c2758a35fd92bbf29332b2462a1618e43961aadf -Size (elftoolchain-0.5.1.tar.bz2) = 5008332 bytes -SHA1 (patch-aa) = e3588a6580ece7159b109e01730f144703aeda1d -SHA1 (patch-ab) = 7ed42bdf24917a01e42580958d29078c7143168c -SHA1 (patch-ac) = c681369aa0dd87a1b2fa5ede647f267a4c132e87 -SHA1 (patch-ad) = 22a254add215d7fa18b32e17e30c92d451c2cecd -SHA1 (patch-ae) = 19f04351c82e4ab421582a2d5b2761308aeff53d -SHA1 (patch-af) = 8de41e29969295b668deee22d6bbb761a586059a -SHA1 (patch-ag) = adbf0b3ba6121bc9b3351cf2f79863a8bafc13d8 -SHA1 (patch-ah) = 1c1d31443566994f48d3b7e9ab2385bd4c07d55e -SHA1 (patch-ai) = 37e8a01421c926b995f7a5cd32c77df7b18bd28f -SHA1 (patch-aj) = 1656ff3c1a9dd9fe27af122d9cbe605092a40925 -SHA1 (patch-ak) = 699aeca92ce35f57988b6135c6b7f3a8f533825f -SHA1 (patch-al) = 1ca5bb02b4bf8b4d0820747c3398d1f5f317c66c -SHA1 (patch-am) = 286bd77aef36812b60fb29218368573b74ac892e -SHA1 (patch-an) = 6de919bb0cf3f406c9b5addcf868c57d5d71403e -SHA1 (patch-ar_acpyacc_y) = 462e9463ff66defe76759d4eb58d3b5d98c846b9 -SHA1 (patch-ar_ar.h) = bf6dc1ff7c50291b111c976f0ca6c87c71b4891a -SHA1 (patch-ar_util.c) = 7a70d796516f0b0369dfa44b373dfff5e67dfb9e +SHA1 (elftoolchain-0.7.1.tar.bz2) = fdab1804543e47887bd73f1177b723af21ab47ae +RMD160 (elftoolchain-0.7.1.tar.bz2) = 9e341f86573d80dd2b390d79cf82f239ecd279ff +SHA512 (elftoolchain-0.7.1.tar.bz2) = 8226c468b393f0d567167a9dd6b16d2a226227e4d05dab8f44550038da44dcbfb92749f8e1a4b130b893675337a6771e24a81f350f3f864b1b8b17402ed23b26 +Size (elftoolchain-0.7.1.tar.bz2) = 5361427 bytes +SHA1 (patch-am) = 67678cb5e9ff5df7ebaa22e7bb1dc9538e1b3063 SHA1 (patch-libdwarf_Makefile) = bea37cf65de237146dc51a71aed04581bc6c1d95 SHA1 (patch-libelf_Makefile) = 29fdcead0e1d01ba2cf1d9e16e9d50bc041c9eec -SHA1 (patch-libelftc_Makefile) = a91f55e598482123a04dd5e50e5d992a8d866036 -SHA1 (patch-libelftc___libelftc.h) = d2ee73ee21d56a241aec04c43073e3e0dd164d6d +SHA1 (patch-libelftc_Makefile) = 64990e254ca3c55615cc3746fa948d7e0ca1fcb4 +SHA1 (patch-libelftc___libelftc.h) = db63ca28c25ccf92b9b15ffcaf016bf2bd3d291d diff --git a/devel/elftoolchain/patches/patch-aa b/devel/elftoolchain/patches/patch-aa deleted file mode 100644 index db105ecec86..00000000000 --- a/devel/elftoolchain/patches/patch-aa +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-aa,v 1.1.1.1 2011/11/20 06:25:18 agc Exp $ - -Fix warning for printf format messages with gcc 4.5 and -Wformat=2 - ---- addr2line/addr2line.c 2011/11/18 20:38:58 1.1 -+++ addr2line/addr2line.c 2011/11/18 20:39:27 -@@ -57,7 +57,7 @@ - static char unknown[] = { '?', '?', '\0' }; - static Dwarf_Addr section_base; - --static const char *usagemsg = "\ -+static const char usagemsg[] = "\ - Usage: %s [options] hexaddress...\n\ - Map program addresses to source file names and line numbers.\n\n\ - Options:\n\ diff --git a/devel/elftoolchain/patches/patch-ab b/devel/elftoolchain/patches/patch-ab deleted file mode 100644 index 42e10cd2e57..00000000000 --- a/devel/elftoolchain/patches/patch-ab +++ /dev/null @@ -1,48 +0,0 @@ -$NetBSD: patch-ab,v 1.1.1.1 2011/11/20 06:25:18 agc Exp $ - -Fix warning for printf format messages with gcc 4.5 and -Wformat=2 - ---- ar/ar.c 2011/11/18 20:41:01 1.1 -+++ ar/ar.c 2011/11/18 20:41:58 -@@ -370,7 +370,7 @@ - opt, bsdar->mode); - } - --static const char *ar_usagemsg = "\ -+static const char ar_usagemsg[] = "\ - Usage: %s <command> [options] archive file...\n\ - Manage archives.\n\n\ - Where <command> is one of:\n\ -@@ -404,13 +404,13 @@ - "; - - static void --bsdar_usage() -+bsdar_usage(void) - { - (void) fprintf(stderr, ar_usagemsg, ELFTC_GETPROGNAME()); - exit(EXIT_FAILURE); - } - --static const char *ranlib_usagemsg = "\ -+static const char ranlib_usagemsg[] = "\ - Usage: %s [options] archive...\n\ - Update or create archive symbol tables.\n\n\ - Options:\n\ -@@ -420,14 +420,14 @@ - "; - - static void --ranlib_usage() -+ranlib_usage(void) - { - (void)fprintf(stderr, ranlib_usagemsg, ELFTC_GETPROGNAME()); - exit(EXIT_FAILURE); - } - - static void --bsdar_version() -+bsdar_version(void) - { - (void)printf("%s (%s, %s)\n", ELFTC_GETPROGNAME(), archive_version(), - elftc_version()); diff --git a/devel/elftoolchain/patches/patch-ac b/devel/elftoolchain/patches/patch-ac deleted file mode 100644 index c587557cc19..00000000000 --- a/devel/elftoolchain/patches/patch-ac +++ /dev/null @@ -1,27 +0,0 @@ -$NetBSD: patch-ac,v 1.1.1.1 2011/11/20 06:25:18 agc Exp $ - -Broken YY_NO_INPUT is only needed for NetBSD before 5.99.21 - ---- common/_elftc.h 2011/11/19 10:48:54 1.1 -+++ common/_elftc.h 2011/11/19 10:54:13 -@@ -163,6 +163,7 @@ - - #if defined(__NetBSD__) - -+#include <sys/param.h> - #include <sys/endian.h> - - #define ELFTC_BYTE_ORDER _BYTE_ORDER -@@ -170,7 +171,11 @@ - #define ELFTC_BYTE_ORDER_BIG_ENDIAN _BIG_ENDIAN - - #define ELFTC_HAVE_STRMODE 1 --#define ELFTC_BROKEN_YY_NO_INPUT 1 -+#if __NetBSD_Version__ <= 599002100 -+/* from src/doc/CHANGES: flex(1): Import flex-2.5.35 [christos 20091025] */ -+/* and 5.99.21 was from Wed Oct 21 21:28:36 2009 UTC */ -+# define ELFTC_BROKEN_YY_NO_INPUT 1 -+#endif - #endif /* __NetBSD __ */ - - #endif /* _ELFTC_H */ diff --git a/devel/elftoolchain/patches/patch-ad b/devel/elftoolchain/patches/patch-ad deleted file mode 100644 index 544829dde9a..00000000000 --- a/devel/elftoolchain/patches/patch-ad +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-ad,v 1.1.1.1 2011/11/20 06:25:18 agc Exp $ - -Fix warning for printf format messages with gcc 4.5 and -Wformat=2 - ---- brandelf/brandelf.c 2011/11/18 21:21:58 1.1 -+++ brandelf/brandelf.c 2011/11/18 21:22:12 -@@ -219,7 +219,7 @@ - return (retval); - } - --static const char *usagemsg = "\ -+static const char usagemsg[] = "\ - Usage: %s [options] file...\n\ - Set or display the ABI field for an ELF object.\n\n\ - Supported options are:\n\ diff --git a/devel/elftoolchain/patches/patch-ae b/devel/elftoolchain/patches/patch-ae deleted file mode 100644 index 802e6c0c4c5..00000000000 --- a/devel/elftoolchain/patches/patch-ae +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-ae,v 1.1.1.1 2011/11/20 06:25:18 agc Exp $ - -Fix warning for printf format messages with gcc 4.5 and -Wformat=2 - ---- cxxfilt/cxxfilt.c 2011/11/18 21:24:38 1.1 -+++ cxxfilt/cxxfilt.c 2011/11/18 21:24:54 -@@ -71,7 +71,7 @@ - {"gnu-v3", ELFTC_DEM_GNU3} - }; - --static const char *usagemsg = "\ -+static const char usagemsg[] = "\ - Usage: %s [options] [encoded-names...]\n\ - Translate C++ symbol names to human-readable form.\n\n\ - Options:\n\ diff --git a/devel/elftoolchain/patches/patch-af b/devel/elftoolchain/patches/patch-af deleted file mode 100644 index 1d3a29425a1..00000000000 --- a/devel/elftoolchain/patches/patch-af +++ /dev/null @@ -1,33 +0,0 @@ -$NetBSD: patch-af,v 1.1.1.1 2011/11/20 06:25:18 agc Exp $ - -Fix warning for printf format messages with gcc 4.5 and -Wformat=2 - ---- elfcopy/main.c 2011/11/18 21:25:47 1.1 -+++ elfcopy/main.c 2011/11/18 21:26:31 -@@ -1259,7 +1259,7 @@ - errx(EXIT_FAILURE, "unrecognized OSABI %s", abi); - } - --static const char *elfcopy_usagemsg = "\ -+static const char elfcopy_usagemsg[] = "\ - Usage: %s [options] infile [outfile]\n\ - Transform an ELF object.\n\n\ - Options:\n\ -@@ -1338,7 +1338,7 @@ - exit(EXIT_FAILURE); - } - --static const char *mcs_usagemsg = "\ -+static const char mcs_usagemsg[] = "\ - Usage: %s [options] file...\n\ - Manipulate the comment section in an ELF object.\n\n\ - Options:\n\ -@@ -1357,7 +1357,7 @@ - exit(EXIT_FAILURE); - } - --static const char *strip_usagemsg = "\ -+static const char strip_usagemsg[] = "\ - Usage: %s [options] file...\n\ - Discard information from ELF objects.\n\n\ - Options:\n\ diff --git a/devel/elftoolchain/patches/patch-ag b/devel/elftoolchain/patches/patch-ag deleted file mode 100644 index 6bff1fe174a..00000000000 --- a/devel/elftoolchain/patches/patch-ag +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-ag,v 1.1.1.1 2011/11/20 06:25:18 agc Exp $ - -Fix warning for printf format messages with gcc 4.5 and -Wformat=2 - ---- elfdump/elfdump.c 2011/11/18 21:28:48 1.1 -+++ elfdump/elfdump.c 2011/11/18 21:29:03 -@@ -2736,7 +2736,7 @@ - PRT("\nelf checksum: %#lx\n", gelf_checksum(ed->elf)); - } - --static const char *usagemsg = "\ -+static const char usagemsg[] = "\ - Usage: %s [options] file...\n\ - Display information about ELF objects and ar(1) archives.\n\n\ - Options:\n\ diff --git a/devel/elftoolchain/patches/patch-ah b/devel/elftoolchain/patches/patch-ah deleted file mode 100644 index addd6305f18..00000000000 --- a/devel/elftoolchain/patches/patch-ah +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-ah,v 1.1.1.1 2011/11/20 06:25:18 agc Exp $ - -Fix warning for printf format messages with gcc 4.5 and -Wformat=2 - ---- findtextrel/findtextrel.c 2011/11/18 21:29:57 1.1 -+++ findtextrel/findtextrel.c 2011/11/18 21:30:11 -@@ -47,7 +47,7 @@ - {NULL, 0, NULL, 0} - }; - --static const char *usagemsg = "\ -+static const char usagemsg[] = "\ - Usage: %s [options] [files...]\n\ - Show text relocations present in position independent code.\n\n\ - Options:\n\ diff --git a/devel/elftoolchain/patches/patch-ai b/devel/elftoolchain/patches/patch-ai deleted file mode 100644 index 503e569424c..00000000000 --- a/devel/elftoolchain/patches/patch-ai +++ /dev/null @@ -1,36 +0,0 @@ -$NetBSD: patch-ai,v 1.1.1.1 2011/11/20 06:25:18 agc Exp $ - -Fix warning for printf format messages with gcc 4.5 and -Wformat=2 - ---- nm/nm.c 2011/11/18 21:31:02 1.1 -+++ nm/nm.c 2011/11/18 21:45:38 -@@ -855,9 +855,9 @@ - - if (nm_opts.demangle_type < 0 || - elftc_demangle(name, dem, sizeof(dem), nm_opts.demangle_type) < 0) -- printf(format, name); -+ printf((strcmp(format, "%s") == 0) ? "%s" : "%-20s|", name); - else -- printf(format, dem); -+ printf((strcmp(format, "%s") == 0) ? "%s" : "%-20s|", dem); - } - - static void -@@ -1355,7 +1355,7 @@ - process_sym: - - p_data.list_num = get_sym(elf, &list_head, shnum, dynndx, strndx, -- type_table, (const char **)sec_table, shnum); -+ type_table, (const char **)(const void **)sec_table, shnum); - - if (p_data.list_num == 0) - goto next_cmd; -@@ -1363,7 +1363,7 @@ - p_data.headp = &list_head; - p_data.sh_num = shnum; - p_data.t_table = type_table; -- p_data.s_table = (const char **)sec_table; -+ p_data.s_table = (const char **)(const void **)sec_table; - p_data.filename = filename; - p_data.objname = objname; - diff --git a/devel/elftoolchain/patches/patch-aj b/devel/elftoolchain/patches/patch-aj deleted file mode 100644 index 931dceb1d79..00000000000 --- a/devel/elftoolchain/patches/patch-aj +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-aj,v 1.1.1.1 2011/11/20 06:25:18 agc Exp $ - -Fix warning for printf format messages with gcc 4.5 and -Wformat=2 - ---- readelf/readelf.c 2011/11/18 21:46:36 1.1 -+++ readelf/readelf.c 2011/11/18 21:47:04 -@@ -6580,7 +6580,7 @@ - exit(EXIT_SUCCESS); - } - --static const char *usagemsg = "\ -+static const char usagemsg[] = "\ - Usage: %s [options] file...\n\ - Display information about ELF objects and ar(1) archives.\n\n\ - Options:\n\ diff --git a/devel/elftoolchain/patches/patch-ak b/devel/elftoolchain/patches/patch-ak deleted file mode 100644 index fcf0c6f08ce..00000000000 --- a/devel/elftoolchain/patches/patch-ak +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-ak,v 1.1.1.1 2011/11/20 06:25:18 agc Exp $ - -cast through void pointer first - ---- size/size.c 2011/11/18 21:47:50 1.1 -+++ size/size.c 2011/11/18 21:48:08 -@@ -194,7 +194,7 @@ - argc -= optind; - argv += optind; - -- files = (argc == 0) ? default_args : (const char **) argv; -+ files = (argc == 0) ? default_args : (const char **)(const void **)argv; - - while ((fn = *files) != NULL) { - rc = handle_elf(fn); diff --git a/devel/elftoolchain/patches/patch-al b/devel/elftoolchain/patches/patch-al deleted file mode 100644 index 5ea5df97617..00000000000 --- a/devel/elftoolchain/patches/patch-al +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-al,v 1.1.1.1 2011/11/20 06:25:18 agc Exp $ - -Fix warning for printf format messages with gcc 4.5 and -Wformat=2 - ---- strings/strings.c 2011/11/18 21:48:54 1.1 -+++ strings/strings.c 2011/11/18 21:49:07 -@@ -426,7 +426,7 @@ - return (RETURN_OK); - } - --static const char *usagemsg = "\ -+static const char usagemsg[] = "\ - Usage: %s [options] [file...]\n\ - Print contiguous sequences of printable characters.\n\n\ - Options:\n\ diff --git a/devel/elftoolchain/patches/patch-am b/devel/elftoolchain/patches/patch-am index ef7273049e7..fc6022716e0 100644 --- a/devel/elftoolchain/patches/patch-am +++ b/devel/elftoolchain/patches/patch-am @@ -1,31 +1,31 @@ -$NetBSD: patch-am,v 1.1.1.1 2011/11/20 06:25:18 agc Exp $ +$NetBSD: patch-am,v 1.2 2018/10/01 12:36:35 ryoon Exp $ don't build tests for ordinary packaging ---- Makefile 2011/11/18 21:53:08 1.1 -+++ Makefile 2011/11/18 21:53:38 -@@ -26,9 +26,9 @@ +--- Makefile.orig 2016-02-07 11:39:17.000000000 +0000 ++++ Makefile +@@ -33,9 +33,9 @@ SUBDIR += size SUBDIR += strings # Build the test suites. --.if exists(${.CURDIR}/test) +-.if exists(${.CURDIR}/test) && defined(WITH_TESTS) && ${WITH_TESTS:tl} == "yes" -SUBDIR += test -.endif -+#.if exists(${.CURDIR}/test) ++#.if exists(${.CURDIR}/test) && defined(WITH_TESTS) && ${WITH_TESTS:tl} == "yes" +#SUBDIR += test +#.endif - # Build documentation at the end. - .if exists(${.CURDIR}/documentation) -@@ -42,7 +42,7 @@ + # Build additional build tooling. + .if defined(WITH_BUILD_TOOLS) && ${WITH_BUILD_TOOLS:tl} == "yes" +@@ -55,7 +55,7 @@ SUBDIR += documentation # # Run the test suites. --.if exists(${.CURDIR}/test) +-.if exists(${.CURDIR}/test) && defined(WITH_TESTS) && ${WITH_TESTS:tl} == "yes" -run-tests: all .PHONY - (cd ${.CURDIR}/test; ${MAKE} test) -.endif -+#.if exists(${.CURDIR}/test) ++#.if exists(${.CURDIR}/test) && defined(WITH_TESTS) && ${WITH_TESTS:tl} == "yes" +#run-tests: all .PHONY +# (cd ${.CURDIR}/test; ${MAKE} test) +#.endif diff --git a/devel/elftoolchain/patches/patch-an b/devel/elftoolchain/patches/patch-an deleted file mode 100644 index 2c0d163a901..00000000000 --- a/devel/elftoolchain/patches/patch-an +++ /dev/null @@ -1,16 +0,0 @@ -$NetBSD: patch-an,v 1.1.1.1 2011/11/20 06:25:18 agc Exp $ - -NetBSD uses the straight "MAN" definition for manual pages - ---- libelftc/Makefile 2011/11/19 10:22:19 1.1 -+++ libelftc/Makefile 2011/11/19 10:24:35 -@@ -28,6 +28,9 @@ - elftc_demangle.3 \ - elftc_version.3 - -+# for NetBSD -+MAN= ${MAN3} -+ - MLINKS= elftc_bfd_find_target.3 elftc_bfd_target_byteorder.3 \ - elftc_bfd_find_target.3 elftc_bfd_target_class.3 \ - elftc_bfd_find_target.3 elftc_bfd_target_flavor.3 diff --git a/devel/elftoolchain/patches/patch-ar_acpyacc_y b/devel/elftoolchain/patches/patch-ar_acpyacc_y deleted file mode 100644 index 1193865e273..00000000000 --- a/devel/elftoolchain/patches/patch-ar_acpyacc_y +++ /dev/null @@ -1,61 +0,0 @@ -$NetBSD: patch-ar_acpyacc_y,v 1.1 2012/09/28 08:59:07 dholland Exp $ - -Fix warnings about old-style function definitions that are fatal in -some(?) builds. - ---- ar/acpyacc.y~ 2011-11-10 06:56:46.000000000 +0000 -+++ ar/acpyacc.y -@@ -414,7 +414,7 @@ arscp_extract(struct list *list) - - /* List modules of archive. (Simple Mode) */ - static void --arscp_list() -+arscp_list(void) - { - - if (!arscp_target_exist()) -@@ -481,7 +481,7 @@ arscp_replace(struct list *list) - - /* Rename the temporary archive to the target archive. */ - static void --arscp_save() -+arscp_save(void) - { - mode_t mask; - -@@ -510,7 +510,7 @@ arscp_save() - * invoking CREATE cmd on current archive. - */ - static void --arscp_clear() -+arscp_clear(void) - { - char *new_target; - -@@ -546,7 +546,7 @@ arscp_end(int eval) - * issued by user. - */ - static int --arscp_target_exist() -+arscp_target_exist(void) - { - - if (target) -@@ -621,7 +621,7 @@ arscp_mlist2argv(struct list *list) - - /* Free space allocated for argv array and its elements. */ - static void --arscp_free_argv() -+arscp_free_argv(void) - { - int i; - -@@ -633,7 +633,7 @@ arscp_free_argv() - - /* Show a prompt if we are in interactive mode */ - static void --arscp_prompt() -+arscp_prompt(void) - { - - if (interactive) { diff --git a/devel/elftoolchain/patches/patch-ar_ar.h b/devel/elftoolchain/patches/patch-ar_ar.h deleted file mode 100644 index d57a569923a..00000000000 --- a/devel/elftoolchain/patches/patch-ar_ar.h +++ /dev/null @@ -1,19 +0,0 @@ -$NetBSD: patch-ar_ar.h,v 1.1 2014/01/15 13:50:43 joerg Exp $ - ---- ar/ar.h.orig 2014-01-12 00:07:52.000000000 +0000 -+++ ar/ar.h -@@ -135,8 +135,14 @@ struct bsdar { - TAILQ_HEAD(, ar_obj) v_obj; /* object(member) list */ - }; - -+#if defined(__GNUC__) && __GNUC__ >= 2 -+__attribute__((__format__(__printf__, 3, 4))) -+#endif - void bsdar_errc(struct bsdar *, int _code, const char *fmt, ...); - int bsdar_is_pseudomember(struct bsdar *_ar, const char *_name); -+#if defined(__GNUC__) && __GNUC__ >= 2 -+__attribute__((__format__(__printf__, 3, 4))) -+#endif - void bsdar_warnc(struct bsdar *, int _code, const char *fmt, ...); - const char *bsdar_strmode(mode_t m); - void ar_mode_d(struct bsdar *bsdar); diff --git a/devel/elftoolchain/patches/patch-ar_util.c b/devel/elftoolchain/patches/patch-ar_util.c deleted file mode 100644 index 6bc13d9e9ba..00000000000 --- a/devel/elftoolchain/patches/patch-ar_util.c +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-ar_util.c,v 1.1 2014/01/15 13:50:43 joerg Exp $ - ---- ar/util.c.orig 2014-01-12 00:06:46.000000000 +0000 -+++ ar/util.c -@@ -42,4 +42,10 @@ ELFTC_VCSID("$Id: util.c 2130 2011-11-10 - -+#if defined(__GNUC__) && __GNUC__ >= 2 -+__attribute__((__format__(__printf__, 3, 0))) -+#endif - static void bsdar_vwarnc(struct bsdar *, int code, - const char *fmt, va_list ap); -+#if defined(__GNUC__) && __GNUC__ >= 2 -+__attribute__((__format__(__printf__, 3, 0))) -+#endif - static void bsdar_verrc(struct bsdar *bsdar, int code, diff --git a/devel/elftoolchain/patches/patch-libelftc_Makefile b/devel/elftoolchain/patches/patch-libelftc_Makefile index 01441384e37..23bd8563489 100644 --- a/devel/elftoolchain/patches/patch-libelftc_Makefile +++ b/devel/elftoolchain/patches/patch-libelftc_Makefile @@ -1,4 +1,4 @@ -$NetBSD: patch-libelftc_Makefile,v 1.1 2011/11/26 15:50:27 dholland Exp $ +$NetBSD: patch-libelftc_Makefile,v 1.2 2018/10/01 12:36:35 ryoon Exp $ Add a minor version to libelftc.so; otherwise a bootstrapped build does "ln -sf libelftc.so.1 libelftc.so.1" and then install fails with ELOOP. @@ -6,10 +6,10 @@ Add a minor version to libelftc.so; otherwise a bootstrapped build does This is a bug in bootstrap-mk-files but I'm going to fix it in both places to avoid demanding rebootstrapping. ---- libelftc/Makefile~ 2011-11-26 15:18:44.000000000 +0000 +--- libelftc/Makefile.orig 2018-09-26 00:03:01.469445303 +0000 +++ libelftc/Makefile -@@ -17,6 +17,7 @@ INCS= libelftc.h - BRANCH= 0.5.1 # Change this on release branches. +@@ -23,6 +23,7 @@ INCSDIR= /usr/include + RELEASE= 0.7.1 # Change this on release branches. SHLIB_MAJOR= 1 +SHLIB_MINOR= 0 diff --git a/devel/elftoolchain/patches/patch-libelftc___libelftc.h b/devel/elftoolchain/patches/patch-libelftc___libelftc.h index 8af546312f7..afe7d14d78c 100644 --- a/devel/elftoolchain/patches/patch-libelftc___libelftc.h +++ b/devel/elftoolchain/patches/patch-libelftc___libelftc.h @@ -1,15 +1,15 @@ -$NetBSD: patch-libelftc___libelftc.h,v 1.1 2017/05/31 22:14:43 agc Exp $ +$NetBSD: patch-libelftc___libelftc.h,v 1.2 2018/10/01 12:36:35 ryoon Exp $ avoid error - cast float value to size_t before using it ---- libelftc/_libelftc.h 2017/05/31 22:09:00 1.1 -+++ libelftc/_libelftc.h 2017/05/31 22:09:18 -@@ -55,7 +55,7 @@ +--- libelftc/_libelftc.h.orig 2015-03-27 17:13:41.000000000 +0000 ++++ libelftc/_libelftc.h +@@ -55,7 +55,7 @@ struct vector_str { char **container; }; -#define BUFFER_GROWFACTOR 1.618 -+#define BUFFER_GROWFACTOR (size_t)1.618 - #define VECTOR_DEF_CAPACITY 8 - #define ELFTC_ISDIGIT(C) (isdigit((C) & 0xFF)) ++#define BUFFER_GROWFACTOR ((size_t)1.618) + #define ELFTC_FAILURE 0 + #define ELFTC_ISDIGIT(C) (isdigit((C) & 0xFF)) |