Activity for Ed Maste

  • Ed Maste Ed Maste posted a comment on ticket #597

    Committed to FreeBSD as https://svnweb.freebsd.org/changeset/base/367809

  • Ed Maste Ed Maste posted a comment on ticket #594

    Committed to FreeBSD in r366977 https://reviews.freebsd.org/rS366977

  • Ed Maste Ed Maste posted a comment on ticket #555

    Committed to FreeBSD in r367209 https://reviews.freebsd.org/rS367209

  • Ed Maste Ed Maste posted a comment on ticket #552

    FreeBSD patch is in review at https://reviews.freebsd.org/D23782

  • Ed Maste Ed Maste committed [r3871]

    elfcopy: set ELF OS/ABI field when converting from binary

  • Ed Maste Ed Maste committed [r3858]

    Sync RISC-V relocations

  • Ed Maste Ed Maste posted a comment on ticket #555

    Further, I imagine that with SHF_COMPRESSED support in libelf we would just handle it transparently, and -z/--decompress would be a no-op.

  • Ed Maste Ed Maste posted a comment on ticket #555

    Blog post on the support in Solaris libelf: https://blogs.oracle.com/solaris/elf_section_compression-v2

  • Ed Maste Ed Maste committed [r3847]

    readelf: add RISC-V DWARF register aliases

  • Ed Maste Ed Maste committed [r3846]

    readelf: add PowerPC VMX and VSX notes

  • Ed Maste Ed Maste committed [r3845]

    readelf: hoist file opening out of dump_object

  • Ed Maste Ed Maste posted a comment on ticket #585

    Do you have a possible API in mind?

  • Ed Maste Ed Maste committed [r3836]

    readelf: add an XXX comment for cross-endian core file ELF notes

  • Ed Maste Ed Maste committed [r3835]

    readelf: check note namesz and descsz

  • Ed Maste Ed Maste posted a comment on ticket #583

    For the readelf the best approach is probably to teach libelf how to translate the ELF notes used by various operating sytems, @jkoshy do you agree?

  • Ed Maste Ed Maste posted a comment on ticket #583

    First two are now fixed (2nd by [r3832]). The 3rd group (MIPS) are also related to ticket [#559]. I need to figure out what the right way to handle [r3766] is.

  • Ed Maste Ed Maste committed [r3832]

    elfcopy: copy raw (untranslated) contents to binary output

  • Ed Maste Ed Maste posted a comment on ticket #583

    And this first issue is already fixed by [r3158]

  • Ed Maste Ed Maste posted a comment on ticket #583

    Yes, I pasted the wrong rev; FreeBSD r273443 correctly identified the issue but the commit was incorrect; I reverted it and applied the correct fix in https://reviews.freebsd.org/rS275430

  • Ed Maste Ed Maste committed [r3831]

    readelf: add FreeBSD PROTMAX_DISABLE and STKGAP_DISABLE

  • Ed Maste Ed Maste posted a comment on ticket #583

    It seems I had this unsubmitted in a forgotten browser tab, from shortly after [r3766] was committed (i.e., just after 2019-06-29). It's possible that there have been changes that affect these issues or introduce new ones since.

  • Ed Maste Ed Maste posted a comment on ticket #554

    Our demangler(s) have a great number of issues; a couple of hours of fuzzing with afl turned up several hundred crashes/aborts. american fuzzy lop 2.52b (c++filt) ┌─ process timing ─────────────────────────────────────┬─ overall results ─────┐ │ run time : 0 days, 1 hrs, 43 min, 28 sec │ cycles done : 2 │ │ last new path : 0 days, 0 hrs, 0 min, 25 sec │ total paths : 3333 │ │ last uniq crash : 0 days, 0 hrs, 1 min, 57 sec │ uniq crashes : 425 │ │ last uniq hang : 0 days, 0 hrs, 56 min, 7 sec │ uniq...

  • Ed Maste Ed Maste posted a comment on ticket #582

    As mark points out the benefit from merging within .shstrtab is likely small, generally a handful of .rel or .rela sections. The real benefit would come from merging .shstrtab and .strtab but there are a limited number of cases where it's possible to do so.

  • Ed Maste Ed Maste created ticket #583

    ELF Tool Chain endianness issues

  • Ed Maste Ed Maste modified ticket #575

    elfcopy test suite failures

  • Ed Maste Ed Maste posted a comment on ticket #575

    Fixed with two commits referenced above; ticket [#582] open to track restoring suffix merging.

  • Ed Maste Ed Maste created ticket #582

    Consider implementing strtab suffix merging in libelftc

  • Ed Maste Ed Maste posted a comment on ticket #575

    Early source control systems used to have problems with binary objects - this might be why the test inputs are stored uuencoded. I'm not sure why shar is required. We could perhaps check with @kaiwang27 and simplify the test harness. Ok, sounds good. Both parts of Mark's change are now committed in [r3827] and [r3828].

  • Ed Maste Ed Maste committed [r3828]

    elfcopy: Regenerate output files for failing test cases.

  • Ed Maste Ed Maste posted a comment on ticket #575

    https://github.com/emaste/elftoolchain/pull/10

  • Ed Maste Ed Maste posted a comment on ticket #575

    Ah, I had the diff backwards it seems, [r3827] contains the fix for the \0\0.

  • Ed Maste Ed Maste committed [r3827]

    elfcopy: Avoid emitting an extra empty string in .shstrtab.

  • Ed Maste Ed Maste posted a comment on ticket #575

    Checked with Mark and we believe is actually a bug fixed by r3757. Diffoscope results from Mark: 2020-02-27 14:03:25 W: diffoscope.main: Fuzzy-matching is currently disabled as the "tlsh" module is unavailable. --- ./sym.o.1 +++ ../out/sym.o.1 ├── readelf --wide --sections {} │ @@ -3,12 +3,12 @@ │ Section Headers: │ [Nr] Name Type Addr Off Size ES Flg Lk Inf Al │ [ 0] NULL 00000000 000000 000000 00 0 0 0 │ [ 1] .text PROGBITS 00000000 000040 00003a 00 AX 0 0 16 │ [ 2] .data PROGBITS 00000000 00007c...

  • Ed Maste Ed Maste modified ticket #5

    Case-insensitivity breaks GETATTR on cached filehandle

  • Ed Maste Ed Maste committed [r3823]

    readelf: Add support for RISC-V specific e_flags

  • Ed Maste Ed Maste posted a comment on ticket #576

    No point in adding more FreeBSD branches until ticket 575 is addressed.

  • Ed Maste Ed Maste committed [r3822]

    CI: use bmake on Ubuntu

  • Ed Maste Ed Maste posted a comment on ticket #574

    We're also using sys/tree.h for addr2line, thread at https://sourceforge.net/p/elftoolchain/mailman/message/36923333/

  • Ed Maste Ed Maste committed [r3821]

    INSTALL: List Ubuntu 18.04 in supported OS table

  • Ed Maste Ed Maste committed [r3820]

    CI: add Ubuntu 18.04 task

  • Ed Maste Ed Maste posted a comment on ticket #545

    Finally committed to FreeBSD, will be upstreamed soon. Author: emaste Date: Wed Feb 12 21:52:10 UTC 2020 New revision: 357844 URL: https://svnweb.freebsd.org/changeset/base/357844

  • Ed Maste Ed Maste posted a comment on ticket #546

    Reportedly fixed by https://reviews.freebsd.org/D23501

  • Ed Maste Ed Maste posted a comment on ticket #575

    Discussed with markj (who does not have a SourceForge account AFAIK) and he will take a look.

  • Ed Maste Ed Maste posted a comment on ticket #579

    Anything else still needed here?

  • Ed Maste Ed Maste posted a comment on ticket #579

    Indeed, CI is now red due to #575 https://cirrus-ci.com/task/4873950589091840

  • Ed Maste Ed Maste posted a comment on ticket #575

    git bisect reports 01aa270c34f05f5bb0c080d4e5a2bd92294251eb is the first bad commit commit 01aa270c34f05f5bb0c080d4e5a2bd92294251eb Author: emaste <emaste@95820547-d848-0410-985e-9ae8fe0fa350> Date: Fri Jun 28 01:15:28 2019 +0000 elfcopy: Use libelftc's string table routines to build .shstrtab. This replaces some hand-rolled routines and is substantially faster since libelftc uses a hash table for lookups and insertions, whereas elfcopy would perform a linear scan of the table. Obtained from FreeBSD...

  • Ed Maste Ed Maste modified ticket #5

    Case-insensitivity breaks GETATTR on cached filehandle

  • Ed Maste Ed Maste modified ticket #5

    Case-insensitivity breaks GETATTR on cached filehandle

  • Ed Maste Ed Maste committed [r3815]

    Cirrus-CI: run tests on FreeBSD 11 and 12

  • Ed Maste Ed Maste committed [r3814]

    Cirrus-CI: run tests on FreeBSD

  • Ed Maste Ed Maste created ticket #579

    top-level `make run-tests` target does not indicate pass/fail

  • Ed Maste Ed Maste posted a comment on ticket #547

    python 2 is EOL, we need to migrate ELF Tool Chain to use python 3

  • Ed Maste Ed Maste posted a comment on ticket #270

    Another alternative is LLVM's test infrastructure. I find it to be very developer-friendly.

  • Ed Maste Ed Maste committed [r3813]

    INSTALL: update FreeBSD reference to 11.3

  • Ed Maste Ed Maste modified a comment on ticket #575

    Example Cirrus-CI run https://cirrus-ci.com/task/5643634364121088 make run-tests does not return error if any tests fail, unfortunately

  • Ed Maste Ed Maste posted a comment on ticket #575

    Appears all tests pass for me on FreeBSD, example Cirrus-CI run https://cirrus-ci.com/task/5643634364121088

  • Ed Maste Ed Maste posted a comment on ticket #576

    Oh, I didn't see that @lwhsu submitted a patch with this ticket, I just added 12.1 to the existing 11.2.

  • Ed Maste Ed Maste posted a comment on ticket #576

    In my local tree, result at https://cirrus-ci.com/task/4671894406299648

  • Ed Maste Ed Maste posted a comment on ticket #575

    It seems tests are not connected to CI yet, I will do that ASAP so that we don't end up with another case of this in the future. In the git mirror [r3780] is bce9ba83a8e3cccdd183672848091f978b863aa0, we can git bisct between that rev and the last known good version (presumably the last release)

  • Ed Maste Ed Maste committed [r3812]

    replace strncpy with memcpy when copying full string

  • Ed Maste Ed Maste committed [r3811]

    readelf: Don't leak memory when dwarf_get_fde_info_for_all_regs() fails.

  • Ed Maste Ed Maste committed [r3810]

    readelf: Fix a double close of the input file.

  • Ed Maste Ed Maste committed [r3809]

    size: Avoid returning a stack pointer from xlatetom().

  • Ed Maste Ed Maste committed [r3808]

    elfcopy: Avoid leaking dst's fd when we fail to copy a file.

  • Ed Maste Ed Maste committed [r3807]

    elfcopy: Handle multiple data descriptors properly.

  • Ed Maste Ed Maste committed [r3806]

    libelftc: Add a missing check for an error from vector_str_init().

  • Ed Maste Ed Maste committed [r3805]

    libelftc: Fix memory leaks in the C++ demanglers.

  • Ed Maste Ed Maste committed [r3804]

    libdwarf: Fix a memory leak in _dwarf_frame_section_init().

  • Ed Maste Ed Maste committed [r3803]

    libdwarf: Make an out-pointer of _dwarf_abbrev_add() mandatory.

  • Ed Maste Ed Maste committed [r3802]

    libdwarf: Fix a possible memory leak in dwarf_add_AT_location_expr().

  • Ed Maste Ed Maste committed [r3801]

    libdwarf: Remove unnecessary NULL checks.

  • Ed Maste Ed Maste committed [r3800]

    Cirrus-CI: temporarily comment out Debian task

  • Ed Maste Ed Maste committed [r3777]

    elfcopy: Clear errors after fetching the shstrtab index.

  • Ed Maste Ed Maste committed [r3769]

    Add FreeBSD note types missed in r3766

  • Ed Maste Ed Maste committed [r3768]

    Add DF_1 flags missed in r3765

  • Ed Maste Ed Maste committed [r3767]

    readelf: display NT_GNU_PROPERTY_TYPE_0 note name

  • Ed Maste Ed Maste created ticket #573

    Tests failing on FreeBSD

  • Ed Maste Ed Maste posted a comment on ticket #571

    Copied here to keep details in one place: I also noticed that when elf_update recomputes the section layout, it leaves the section offset of SHT_NOBITS and SHT_NULL sections alone while the others are updated. elfutils sets the offset of the section based on the ending of the previous section. Does this offset have any meaning, or is it just arbitrary? Either way, maybe it makes sense to set it to the end of the previous section to avoid inheriting the value from the original section layout.

  • Ed Maste Ed Maste posted a comment on ticket #559

    See FreeBSD commit: elfcopy: fix little-endian MIPS64 objects https://reviews.freebsd.org/D15734 https://reviews.freebsd.org/rS344855 https://reviews.freebsd.org/rS339083 https://reviews.freebsd.org/rS339473

  • Ed Maste Ed Maste committed [r3766]

    readelf: decode FreeBSD note types

  • Ed Maste Ed Maste committed [r3765]

    readelf: decode flag bits in DT_FLAGS/DT_FLAGS_1

  • Ed Maste Ed Maste committed [r3764]

    libelf: add config for RISC-V ISA

  • Ed Maste Ed Maste committed [r3763]

    libelf: assert that msz is non-zero

  • Ed Maste Ed Maste committed [r3762]

    elfdump: add OpenBSD ELF program header types

  • Ed Maste Ed Maste committed [r3761]

    readelf: print description for 'e_flags' in ELF header (ABI type)

  • Ed Maste Ed Maste committed [r3760]

    readelf: report byte size for DT_PREINIT_ARRAYSZ

  • Ed Maste Ed Maste committed [r3759]

    readelf: dump ELF note data

  • Ed Maste Ed Maste committed [r3758]

    elfcopy: Provide a size hint when creating the section string table.

  • Ed Maste Ed Maste committed [r3757]

    elfcopy: Use libelftc's string table routines to build .shstrtab.

  • Ed Maste Ed Maste committed [r3756]

    elfcopy: Use elf_getscn() instead of iterating over all sections

  • Ed Maste Ed Maste committed [r3755]

    elfcopy: Optimize for insertions at the end of the section list

  • Ed Maste Ed Maste committed [r3754]

    elfcopy: Pass the right sizes to malloc() and realloc()

  • Ed Maste Ed Maste committed [r3753]

    readelf: Make -t imply -S, for compatibility with GNU binutils

  • Ed Maste Ed Maste committed [r3752]

    libelftc: add RISC-V bfd targets

  • Ed Maste Ed Maste committed [r3751]

    libelftc: readelf: decode R_MIPS_HIGHER and R_MIPS_HIGHEST relocation types

  • Ed Maste Ed Maste committed [r3750]

    libelftc: Fix some minor style bugs

  • Ed Maste Ed Maste committed [r3749]

    libdwarf: add DW_LANG_* definitions from DWARF 4 and 5

  • Ed Maste Ed Maste committed [r3748]

    libdwarf: Use the cached strtab pointer when reading string attributes.

  • Ed Maste Ed Maste committed [r3746]

    libelftc: Micro-optimize string table insertion

1 >