summaryrefslogtreecommitdiffstats
path: root/contrib/elftoolchain
Commit message (Collapse)AuthorAgeFilesLines
* Fix the conversion macro for .note sections, broken in the casemarcel2014-10-221-5/+5
| | | | | | | | | | the ELF file's byte order is not the native byte order. The bug is that the variables holding the name and description size are used (natively) after having been byte-swapped. The fix is to calculate sz from them just prior to byte-swapping. Approved by: jkoshy@ Obtained from: Juniper Networks, Inc.
* GCC for PowerPC does not align .note sections to 4 bytes. Whenmarcel2014-10-221-1/+1
| | | | | | | | running ctfmerge on its objects, libelf asserts as it expects .note sections to be 4-byte aligned. Change that expectation. Approved by: jkoshy@ Obtained from: Juniper Networks, Inc.
* Reapply r221569, r233401, r233524 and r255105: Add support for a fewkaiw2014-01-251-0/+11
| | | | ARM/MIPS ELF section types in _libelf_xlate_shtype().
* Remove trailing whitespace.kaiw2014-01-211-1/+1
|
* * Allow API dwarf_loclist_n() and dwarf_loclist() to be called withkaiw2014-01-191-2/+27
| | | | | | | attributes that have form DW_FORM_sec_offset. * If the .debug_info section conforms to DWARF4, do not allow the value of attributes with form DW_FORM_data[48] to be used as section offset.
* Add a sanity check: The provided offset for the desired location listkaiw2014-01-191-0/+5
| | | | should not exceed the size of the .debug_loc section.
* API dwarf_attrval_flag() should properly handle an attribute withkaiw2014-01-182-7/+23
| | | | | | | | (DWARF4) form DW_FORM_flag_present which implicitly indicates the presence of the attribute. Manual page is updated to reflect this change. Note that this was previously fixed in the old libdwarf.
* Fix typo: the public API dwarf_child() should return DW_DLV_NO_ENTRYkaiw2014-01-181-1/+1
| | | | instead of DW_DLE_NO_ENTRY when a child DIE is not found.
* Fix a warning in libdwarf found by -Wmissing-variable-declarations.kaiw2014-01-181-1/+1
|
* Apply r241720 by ed:kaiw2014-01-181-1/+1
| | | | Fix warnings found by -Wmising-variable-declarations.
* Use FreeBSD's ELF headers instead of the elfdefinitions.h header whichkaiw2014-01-161-2/+2
| | | | | | comes with elftoolchain. This version of libelf doesn't need to be portable; using FreeBSD's own ELF headers will avoid conflicts and make integration easier.
* Copy libelf, libdwarf and common files from vendor/ to contrib/.kaiw2014-01-15315-0/+56173
OpenPOWER on IntegriCloud