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

Enable dynamically linking libmemcpy #13

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

Svetlitski
Copy link

When attempting to compile libmemcpy to a shared object, linking would fail with complaints about symbol relocations. The root cause of this issue was that the non-function symbols in cpu.c used by the various memcpy*.S implementations were not marked as hidden like they are in the corresponding glibc source.

Copy link
Member

@Xyene Xyene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

When attempting to compile `libmemcpy` to a shared object, linking would
fail with complaints about symbol relocations. The root cause of this
issue was that the non-function symbols in `cpu.c` used by the
various `memcpy*.S` implementations were not marked as hidden like they
are [in the corresponding `glibc` source](https://github.com/bminor/glibc/blob/1ea051145612f199d8716ecdf78b084b00b5a727/sysdeps/x86/cacheinfo.h#L31-L36).
@Svetlitski Svetlitski force-pushed the cpu-mark-symbols-as-hidden branch from e5016bb to f00ad93 Compare March 21, 2024 15:04
@Xyene Xyene merged commit 92bcea9 into DMOJ:master Mar 21, 2024
7 checks passed
@Svetlitski Svetlitski deleted the cpu-mark-symbols-as-hidden branch March 21, 2024 15:09
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