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

Unknown relocation type fix #2

Closed
dok852 opened this issue Mar 15, 2018 · 5 comments
Closed

Unknown relocation type fix #2

dok852 opened this issue Mar 15, 2018 · 5 comments

Comments

@dok852
Copy link

dok852 commented Mar 15, 2018

Hey - I saw you had issues with generating certain .pat files.
To fix this you can add the "-rXX:0:0" flag to your command, where XX is the unknown relocation type number.

So if you were running ./pelf libc.a libc.pat and got the following error:

Fatal [libc.a] (init-first.o): Unknown relocation type 42 (section#=3, offset in section=0x1b9d000000000).

Your new command would be ./pelf libc.a -r42:0:0 libc.pat. You may have to do this several times before it works, but you can just add the same flag multiple times if so.

Hope this helps.

@push0ebp
Copy link
Owner

Oh Thanks much.
Then. Following your suggestion, I can generate pat file such powerpc, mips architecture?

@dok852
Copy link
Author

dok852 commented Mar 24, 2018

Yes, you should be able to.

@push0ebp
Copy link
Owner

push0ebp commented Apr 10, 2018

Thx, I will use it next commit.

@push0ebp
Copy link
Owner

I encountered error.

 ../flair/pelf libc.a -r87:0:0 libc.pat
Fatal [libc.a] (sysdep.o): Unknown relocation type 87 (offset in section=0xa).

why is not worked?

@push0ebp
Copy link
Owner

push0ebp commented Jun 3, 2018

thank you for your contribution.

@push0ebp push0ebp closed this as completed Jun 3, 2018
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

2 participants