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

write: need better handling of DW_FORM_ref_addr #478

Open
philipc opened this issue Mar 30, 2020 · 0 comments
Open

write: need better handling of DW_FORM_ref_addr #478

philipc opened this issue Mar 30, 2020 · 0 comments

Comments

@philipc
Copy link
Collaborator

philipc commented Mar 30, 2020

The current handling of DW_FORM_ref_addr assumes that you are writing all of the compilation units at once, so that it can calculate the section offset itself, but that is atypical behaviour. Instead, the producer will normally need to generate a symbol and relocation so that the reference can be resolved during static linking.

Fixing this will need a means to assign a symbol to the reference, and a means to assign a symbol to an entry that may be referred to.

This will also apply to DW_OP_call_ref in expressions.

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

No branches or pull requests

1 participant