+
Skip to content

Add constants obsolete after DWARF 1.1 #775

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

Merged
merged 3 commits into from
Jun 20, 2025

Conversation

stravant
Copy link
Contributor

  • The DWARF 1.1 specification includes some constants which are only relevant in that spec, and became obsolete in the later revisions of the spec.

  • Currently the gimli does not include these constants because since DWARF 1.1 is a different structure and rarely relevant it does not support parsing of DWARF 1.1.

  • However DWARF 1.1 is relevant to the decomp community. Since decomp tooling wants to depend on gimli anyways for DWARF 2+, it would be nice if it could also at least use gimli data structures for DWARF 1.1 rather than having to write something bespoke. Including the constants unique to DWARF 1.1 helps with that.

  • This is unlikely to cause much confusion about what is supported since anyone who runs into DWARF 1.1 in practice is probably already deep in the weeds.

  • The added values can be cross-referenced here in Python elftools to confirm that they are correct: https://github.com/eliben/pyelftools/blob/0c3283b3c872a0424bf4017a95ecee14aa6f17b8/elftools/dwarf/enums.py

* The DWARF 1.1 specification includes some constants which are only
  relevant in that spec, and became obsolete in the later revisions of
  the spec.

* Currently the gimli does not include these constants because since
  DWARF 1.1 is a different structure and rarely relevant it does not
  support parsing of DWARF 1.1.

* However DWARF 1.1 is relevant to the decomp community. Since decomp
  tooling wants to depend on gimli anyways for DWARF 2+, it would be
  nice if it could also use at least gimli data structures for
  DWARF 1.1 rather than having to write something entirely bespoke.
  Including the constants unique to DWARF 1.1 helps with that.

* This is unlikely to cause much confusion about what is supported since
  anyone who runs into DWARF 1.1 in practice is probably already deep
  in the weeds.
Copy link
Collaborator

@philipc philipc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@philipc philipc merged commit 349d8a1 into gimli-rs:master Jun 20, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载