Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADI SHARC Architecture support #593

Merged
merged 6 commits into from
Nov 30, 2023
Merged

ADI SHARC Architecture support #593

merged 6 commits into from
Nov 30, 2023

Commits on Oct 6, 2023

  1. Add Architecture::Sharc

    joshchngs committed Oct 6, 2023
    Configuration menu
    Copy the full SHA
    70d07b4 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2023

  1. Configuration menu
    Copy the full SHA
    0b492ed View commit details
    Browse the repository at this point in the history
  2. elf: sharc: add SHT_SHARC_ADI_ATTRIBUTES

    Encoded as normal ELF attributes, with proprietary tags.
    
    I have an implementation of the full encode/decode in a private repo,
    which I can share for porting into `object` if needed, but it seems a
    bit out of scope.
    joshchngs committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    460f5ae View commit details
    Browse the repository at this point in the history
  3. elf: sharc: Use reloc field length as size

    E.g. a 6-bit PC-relative relocation into a 48-bit instruction has
    `size == 6`, not `size == 48`.
    joshchngs committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    b1d76da View commit details
    Browse the repository at this point in the history
  4. elf: sharc: condense new RelocationEncoding variants

    As suggested by @philipc. Combined with the previous commit's change to
    the meaning of `size` for these relocations, there is no longer any
    ambiguity when converting between the 3-tuple and Rel::r_type constants.
    joshchngs committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    45c7463 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2023

  1. elf: sharc: Remove specific generic encoding error

    As discussed in PR gimli-rs#593
    
    The `_` pattern will take these matches now, so the result is still an
    Error, just with a (probably) more truthful message.
    joshchngs committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    75d9034 View commit details
    Browse the repository at this point in the history