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

elfhacks: d_un.d_ptr is relative on mips glibc too #1418

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

Icenowy
Copy link
Contributor

@Icenowy Icenowy commented Sep 5, 2024

In GLIBC, this behavior is controlled by per-architecture definition DL_RO_DYN_SECTION, which is only set to 1 on MIPS (according to the comments, it's because of requirements of MIPS ABI) and RISC-V (which seems to be a left-over of copying MIPS code, and kept because of compatibility to older GLIBC versions).

In GLIBC, this behavior is controlled by per-architecture definition
DL_RO_DYN_SECTION, which is only set to 1 on MIPS (according to the
comments, it's because of requirements of MIPS ABI) and RISC-V (which
seems to be a left-over of copying MIPS code, and kept because of
compatibility to older GLIBC versions).

Signed-off-by: Icenowy Zheng <[email protected]>
@flightlessmango flightlessmango merged commit 4b45e26 into flightlessmango:master Sep 5, 2024
5 checks passed
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 this pull request may close these issues.

2 participants