freebsd-skq/contrib/elftoolchain
Leandro Lupori 857e20a273 [PowerPC64] readelf: print description for 'e_flags' in ELF header (ABI type)
This prints out description text with the meaning of 'Flags' value in PowerPC64.

Example:

$ readelf -h ~/tmp/t1-Flag2
ELF Header:

Magic:   7f 45 4c 46 02 02 01 09 00 00 00 00 00 00 00 00
Class:                             ELF64
Data:                              2's complement, big endian
Version:                           1 (current)
OS/ABI:                            FreeBSD
ABI Version:                       0
Type:                              EXEC (Executable file)
Machine:                           PowerPC 64-bit
Version:                           0x1
Entry point address:               0x10010000
Start of program headers:          64 (bytes into file)
Start of section headers:          209368 (bytes into file)
Flags:                             0x2, OpenPOWER ELF V2 ABI
Size of this header:               64 (bytes)
Size of program headers:           56 (bytes)
Number of program headers:         10
Size of section headers:           64 (bytes)
Number of section headers:         34
Section header string table index: 31

Submitted by:	 alfredo.junior_eldorado.org.br
Reviewed by:	luporl
Differential Revision:	https://reviews.freebsd.org/D20782
2019-06-28 16:00:55 +00:00
..
addr2line Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
ar Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
brandelf Use the in-tree sys/elf_common.h to build libelftc. 2016-06-05 23:05:14 +00:00
common readelf: Add support for RISC-V specific e_flags 2019-06-28 00:10:26 +00:00
cxxfilt Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elfcopy elfcopy: Provide a size hint when creating the section string table. 2019-06-26 16:35:37 +00:00
elfdump Teach readelf about some OpenBSD ELF program headers 2019-06-07 14:51:55 +00:00
libdwarf libdwarf: Use the cached strtab pointer when reading string attributes. 2019-06-26 16:38:30 +00:00
libelf libelf: Use a red-black tree to manage the section list. 2019-06-04 18:26:29 +00:00
libelftc libelftc: add RISC-V bfd targets 2019-06-28 00:14:12 +00:00
libpe Update ELF Tool Chain to r3614 2018-04-27 13:59:24 +00:00
nm Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
readelf [PowerPC64] readelf: print description for 'e_flags' in ELF header (ABI type) 2019-06-28 16:00:55 +00:00
size Update to ELF Tool Chain r3475 2016-05-20 17:24:34 +00:00
strings cap_fileargs: chase r346315, update fileargs_init in consumers 2019-04-17 16:18:14 +00:00
README.rst Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00

The Elftoolchain Project
========================

.. contents:: Table of Contents

Description
-----------

This software implements essential compilation tools and libraries for:

- managing program objects conforming to the ELF_ object format, and
- for managing DWARF_ debugging information in ELF objects.

The project currently implements the following utilities and
libraries:

=========== ============================================
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.
=========== ============================================

.. _ELF: http://en.wikipedia.org/wiki/Executable_and_Linkable_Format
.. _DWARF: http://www.dwarfstd.org/


Project Documentation
---------------------

- Release notes for released versions of this software are present in
  the file ``RELEASE-NOTES`` in the current directory.
- The file ``INSTALL`` in the current directory contains instructions
  on building and installing this software.
- Reference documentation in the form of manual pages is provided for
  the utilities and libraries developed by the project.
- Additional tutorial documentation is present in the
  ``documentation`` directory.


Tracking Ongoing Development
----------------------------

The project uses subversion_ for its version control system.

.. _subversion: https://subversion.apache.org/

The subversion branch for the current set of sources may be accessed
at the following URL::

    https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk

The project's source tree may be checked out from its repository by
using the ``svn checkout`` command::

    % svn checkout https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk

Checked-out sources may be kept upto-date by running ``svn update``
inside the source directory::

    % svn update


Instructions on building and installing the software are given in the
file ``INSTALL`` in the current directory.

Downloading Released Software
-----------------------------

Released versions of the project's software may also be downloaded
from SourceForge's `file release system`_.

.. _file release system: http://sourceforge.net/projects/elftoolchain/files/

Copyright and License
---------------------

This code is copyright its authors, and is distributed under the `BSD
License`_.

.. _BSD License: http://www.opensource.org/licenses/bsd-license.php


Developer Community
-------------------

The project's developers may be contacted using the mailing list:
``<elftoolchain-developers@lists.sourceforge.net>``.


Reporting Bugs
--------------

Please use our `Trac instance`_ for viewing existing bug reports and
for submitting new bug reports.

.. _`Trac instance`: http://sourceforge.net/apps/trac/elftoolchain/report


Additional Information
----------------------

Additional information about the project may be found on the `project
website`_.

.. _project website:  http://elftoolchain.sourceforge.net/

.. $Id: README.rst 3656 2018-12-26 09:46:24Z jkoshy $

.. Local Variables:
.. mode: rst
.. End: