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

DATA and BSS sections with DYLD linker #15

Open
ysbaddaden opened this issue May 31, 2022 · 0 comments · May be fixed by #24
Open

DATA and BSS sections with DYLD linker #15

ysbaddaden opened this issue May 31, 2022 · 0 comments · May be fixed by #24
Assignees
Labels
bug macos MacOS specific issue

Comments

@ysbaddaden
Copy link
Owner

The current solution to determine the DATA and BSS sections (initialized & uninitialized global variables) is invalid for Darwin dynamic linker (DYLD). We assume a memory layout that is a de-facto standard on UNIX (the TEXT section is immediately followed by the DATA section then the BSS section) that is unsupported with DYLD as explained in the get_end(3) manpage. We should instead use the dyld(3) functions to retrieve the actual regions for the DATA and BSS sections.

@ysbaddaden ysbaddaden added bug macos MacOS specific issue labels May 31, 2022
@ysbaddaden ysbaddaden linked a pull request Jun 21, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug macos MacOS specific issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants