public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
* Multiple symbols at the same location
@ 2018-08-25 21:51 Derrick McKee
  2018-08-27 13:09 ` Adhemerval Zanella
  0 siblings, 1 reply; 2+ messages in thread
From: Derrick McKee @ 2018-08-25 21:51 UTC (permalink / raw)
  To: libc-help

Hi,

I am a PhD. student, and in my research I noticed that there are
several versions of memmove and memcpy that are included in statically
compiled binaries.  I understand that this is done for optimization
purposes (and if that is not the case, let me know!).  However, some
versions of memmove and memcpy are located in different places in
.text, while others have their symbols located at the same location in
.text.  For example, __memcpy_avx512_unaligned and
__memmove_avx512_unaligned have the same address, however
__memcpy_ssse3 and __memmove_ssse3 are placed at different addresses.
I assume that this is also done for optimization purposes.

Can someone give me an explanation as to why it makes sense to
separate one group of memory copying functions into two symbols, while
for others the same code is used?  Thanks!


-- 
Derrick McKee
Phone: (703) 957-9362
Email: derrick.mckee@gmail.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-27 13:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-25 21:51 Multiple symbols at the same location Derrick McKee
2018-08-27 13:09 ` Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).