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

useing bss, data, and text with elf_x86_64.BDT。Global static variable wrong #78

Open
Young-xin opened this issue Sep 19, 2023 · 1 comment

Comments

@Young-xin
Copy link

I want to use the bss, data, and text sections and link the program with elf_x86_64.BDT, but at runtime, I'm finding that the values of global static thread variables are garbage.
企业微信截图_1695113937166

@Young-xin
Copy link
Author

the value of thread_var is 0。In other test programs, it was found that the values read are random

@Young-xin Young-xin changed the title useing bss, data, and text with elf_x86_64.BDT useing bss, data, and text with elf_x86_64.BDT。Global static variable wrong Sep 19, 2023
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