-
Notifications
You must be signed in to change notification settings - Fork 23
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
Non-zero RELA section contents #12
Comments
They're using rather outdated versions of jwasm - current release is v2.15. |
GCC seems to add offset to the relocation and subtract it from the code. https://github.com/nidud/asmc/issues/22 Added a hack for this by adding the offset and simply clearing the output. Test case for v2.15:
Asmc:
|
the difference between rel and rela is that in rela, the addend is stored in the relocation table. the instruction stream contents are "unspecified" but i think everyone agrees that they should be set to zero. it's not gcc, it's x86_64 elf platforms (actually binutils, not gcc). |
I guess it's more of a "correction" as the numbers actually adds up but there's an additional variable that fails:
|
@Hello71 reported that jwasm-family assemblers (jwasm, asmc, uasm) generate wrong relocation.
See also:
https://sourceforge.net/p/sevenzip/bugs/2338/
https://sourceware.org/pipermail/binutils/2022-April/120428.html
The text was updated successfully, but these errors were encountered: