Skip to content

More improvements to gimli support #217

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 1 commit into from
Jun 27, 2019
Merged

More improvements to gimli support #217

merged 1 commit into from
Jun 27, 2019

Conversation

alexcrichton
Copy link
Member

  • Migrate to goblin instead of object to reduce dependencies
  • Disable as many features as we can along the way, slimming down dependencies
  • Add rudimentary support for Windows MinGW
  • Don't consult symbol tables in files and instead assume dladdr does
    that for us
  • Add a lifetime parameter to the inner Symbol so the gimli bindings
    can be expressed a bit more safely.

* Migrate to `goblin` instead of `object` to reduce dependencies
* Disable as many features as we can along the way, slimming down dependencies
* Add rudimentary support for Windows MinGW
* Don't consult symbol tables in files and instead assume `dladdr` does
  that for us
* Add a lifetime parameter to the inner `Symbol` so the gimli bindings
  can be expressed a bit more safely.
@alexcrichton alexcrichton merged commit 400ff0b into master Jun 27, 2019
@alexcrichton alexcrichton deleted the gimli-no-object branch June 27, 2019 11:39
@philipc
Copy link
Contributor

philipc commented Jun 28, 2019

Don't consult symbol tables in files and instead assume dladdr does that for us

I think that will only use .dynsym and not .symtab. On the other hand, I'm not sure how often .symtab is present but debuginfo isn't.

@alexcrichton
Copy link
Member Author

Yeah I've started seeing a few more <unknown> symbols than before so I think you're right. Ideally though I'd like to make sure there's a test asserting that it needs to be there, and just working on that coming about!

@alexcrichton
Copy link
Member Author

Ok tests are indeed failing right now when debuginfo is missing but due to other reasons they're already disabled. I'll work on fixing that once 1.36.0 is out!

alexcrichton added a commit that referenced this pull request Jul 8, 2019
This restores logic removed in #217 to search the symbol tables when
looking for symbol name information, consequently fixing a test which
was failing when turned on for gimli.
alexcrichton added a commit that referenced this pull request Jul 8, 2019
This restores logic removed in #217 to search the symbol tables when
looking for symbol name information, consequently fixing a test which
was failing when turned on for gimli.
@alexcrichton
Copy link
Member Author

Ok I've gotten around now to implementing this again

alexcrichton added a commit that referenced this pull request Jul 8, 2019
This restores logic removed in #217 to search the symbol tables when
looking for symbol name information, consequently fixing a test which
was failing when turned on for gimli.
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