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

automate positioning of tls_index in elf-loader #376

Closed
jtracey opened this issue Dec 21, 2017 · 0 comments
Closed

automate positioning of tls_index in elf-loader #376

jtracey opened this issue Dec 21, 2017 · 0 comments
Labels
Status: Obsolete Not reproducible, outdated, or no longer valid X-Archive: Elf Loader Custom loader for dynamically loading plugins

Comments

@jtracey
Copy link
Contributor

jtracey commented Dec 21, 2017

The tls_index field in the VdlFile elf-loader struct corresponds to the l_tls_modid field of the link_map struct of glibc. While it isn't part of the documented glibc ABI, in practice, it gets used by gdb. Right now, we're keeping them at the same offset by hand, measuring how far in it is in glibc's implementation and moving fields around in ours so that it ends up in the same spot. If glibc ever changes this (which, as technically part of the internal ABI, they could ostensibly do whenever they want), we would have to move it as well, and deal with supporting multiple positions from the multiple glibc versions. Since gdb would have to do this as well, it's not extremely likely, but it would be nice to have a longer-term solution to this problem.

@robgjansen robgjansen added X-Archive: Elf Loader Custom loader for dynamically loading plugins and removed elf-loader labels Jun 3, 2020
@robgjansen robgjansen added the Status: Obsolete Not reproducible, outdated, or no longer valid label Jun 18, 2021
qincunrong pushed a commit to qincunrong/shadow that referenced this issue Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Obsolete Not reproducible, outdated, or no longer valid X-Archive: Elf Loader Custom loader for dynamically loading plugins
Projects
None yet
Development

No branches or pull requests

2 participants