Skip to content

Relocation data gets duplicated in the resulting TBF file #94

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

Open
pekangas opened this issue May 28, 2025 · 0 comments · May be fixed by #95
Open

Relocation data gets duplicated in the resulting TBF file #94

pekangas opened this issue May 28, 2025 · 0 comments · May be fixed by #95

Comments

@pekangas
Copy link

The last of the issues we found while catching up with top-of-tree elf2tab...

The logic that gathers relocation data and places it at the end of the file ends up also emitting the data in place, which results in relocations being in the file twice.

My fix is a bit ugly, basically skipping segments that only have relocation data in them. I believe it should generally work, unless some configurations end up combining relocations with other data in the same segment?

@pekangas pekangas linked a pull request May 28, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant