-
Notifications
You must be signed in to change notification settings - Fork 4
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
Incorrect function address calc (maybe?) #15
Comments
Here's the main fn from my Rust produced object file, up to the offending call instruction:
the debug symbols in gdb are borked but:
Checking out that address it's definitely not the 0x10490 where the write syscall starts.
|
Oof, I somehow never noticed this issue, sorry for that. Are you still having this issue now? |
Oh hi there 🤣 It's been a while but if I remember correctly it was a stack alignment issue and fiddling with the relevant flags fixed it |
Alright, guess I'll close it hten. |
I hit a segfault issue trying to change up my build process a bit.
Long story short, I've narrowed the problem down to the first function call to anything linked from outside the main obj file. In this case, moving my function from the same file as main() to a different .o introduces a segfault on the call instruction and the calculated address looks wrong to me, but that's where my knowledge runs dry. it seems like the address of all the call instructions are off by a few bytes but I could be misreading or misinterpreting GDB output.
Relevant, my debugging symbols are borked per #14 and the stack trace is frankly dizzying without them.
If you give me a hint I can probably figure out the fix and PR it, I've been using this thing a bit and I want to better understand it, would enjoy contributing.
The text was updated successfully, but these errors were encountered: