-
Notifications
You must be signed in to change notification settings - Fork 108
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
Address returned by read_address() doesn't match with the one in objdump of object file #548
Comments
Can you give me steps for how to reproduce the issue? |
Sure.
But, when I look into the
We can see that the Could you please have a look at it? |
Sure, might be a few days though. Let me know if you fix the problem before then. |
Using philipc/rewrite@9d3e948, I get input:
output:
This looks correct to me, so you need to give me more information on how to reproduce this problem. |
Oh, I see. Thanks!
Looking at your output, I thought there might be something that is being added to the original value of the
I found that this The issue is resolved now. Thanks for your help! I couldn't figure it out earlier. |
Ah that makes sense. Another option would be to use the raw location lists instead (that's what |
Ok, yes, I see. This problem wouldn't occur if I use the raw location lists. But, yeah, implementing the |
Hi,
I am reading a relocatable object file, to get a location list at a particular offset and I'm using this
ReaderRelocate
implementation: https://github.com/philipc/rewrite/blob/master/src/dwarf.rs#L363. I'm trying to read existing location list, add a new entry there and then update the object file with the newly created location list.I see that
ReaderRelocate::read_address()
uses aVec<write::Address>
and returns an index into thisVec
, instead of the actual address value.But, somehow, when I am reading
begin
andend
addresses in a location list at a particular offset, it's showing a different address, as compared to one shown byobjdump
of the object file.Could you please suggest something?
Thanks!
The text was updated successfully, but these errors were encountered: