Skip to content

Instantly share code, notes, and snippets.

@ngharo
Created February 12, 2014 19:57
Show Gist options
  • Save ngharo/8963308 to your computer and use it in GitHub Desktop.
Save ngharo/8963308 to your computer and use it in GitHub Desktop.
@simonjhall can you help me figure out the best approach?
I'm building my own distro using the LFS book. I patched glibc with your copies-and-fills assembler applied to the following files of glibc-2.18:
ports/sysdeps/arm/memcpy.S | 677 ++++++++++++++++++++++----------------------
ports/sysdeps/arm/memset.S | 183 +++++++-----
2 files changed, 440 insertions(+), 420 deletions(-)
During compilation of glibc, I error out with the following errors:
:(.text+0x1071b8): undefined reference to `__GI_memset'
:(.text+0x107294): undefined reference to `__GI_memcpy'
I'm wondering if you could point me in the right direction to achieve the goal of incorporating your performance memset/memcpy into my distro so it's transparent to the user.
Thank you very much!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment