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

[enhancement] show destination offset when can't apply relocation #412

Closed
X547 opened this issue Apr 2, 2022 · 0 comments
Closed

[enhancement] show destination offset when can't apply relocation #412

X547 opened this issue Apr 2, 2022 · 0 comments

Comments

@X547
Copy link

X547 commented Apr 2, 2022

For large projects containing hand written assembly it may be hard to know exact position of instruction or data that caused relocation apply error during linking.

Example output:

mold: error: objects/haiku/x86_64/release/system/kernel/arch/x86/kernel_arch_x86_64.o:(.text): R_X86_64_32S relocation against symbol `.text' can not be used; recompile with -fPIC

Displaying hexadecimal section or image offset of relocation destination will help investigating and fixing assembly code issues.

@rui314 rui314 closed this as completed in d90f7e1 Apr 3, 2022
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