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

read/elf: Exclude ARM mapping symbols from is_definition() #599

Closed
wants to merge 1 commit into from

Conversation

pcc
Copy link
Contributor

@pcc pcc commented Nov 23, 2023

No description provided.

@philipc
Copy link
Contributor

philipc commented Nov 23, 2023

I agree this needs fixing, but I don't think we want to fix it with special case logic like this.

There's some previous discussion in #447, but I haven't gotten back to it yet to decide what to do.

@pcc
Copy link
Contributor Author

pcc commented Nov 23, 2023

I think most other tools just hardcode the exclusion for mapping symbols though, e.g. LLVM: https://github.com/llvm/llvm-project/blob/6b3470b4b83195aeeda60b101e8d3bf8800c321c/llvm/include/llvm/Object/ELFObjectFile.h#L742

It seems like the simplest approach and I think this is appropriate; mapping symbols are a bit of a hack (fortunately well defined by the various ABIs) and need to be countered with hacks in the consuming programs.

@philipc
Copy link
Contributor

philipc commented Nov 26, 2023

See the last commit of #601 for an alternative fix for this.

@philipc philipc closed this in #601 Nov 29, 2023
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