This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
PowerPC e6500 optimized memcmp function - Query
- From: Dharmakan Rohit Arul Raj <rohitarulraj at freescale dot com>
- To: "libc-help at sourceware dot org" <libc-help at sourceware dot org>
- Cc: Dharmakan Rohit Arul Raj <rohitarulraj at freescale dot com>
- Date: Wed, 22 Jul 2015 10:25:12 +0000
- Subject: PowerPC e6500 optimized memcmp function - Query
- Authentication-results: sourceware.org; auth=none
- Authentication-results: sourceware.org; dkim=none (message not signed) header.d=none;
- Blupr03mb1458: X-MS-Exchange-Organization-RulesExecuted
Hello All,
I have added an optimized PowerPC e6500 library (memcmp) to glibc v2.20 sources and I need some clarification regarding multi-arch support.
The patch works if configured with --disable-multi-arch. But for default build, since multi-arch support is enabled by default, I get this error.
eglibc/opt/freescale/XLMe6500-test/obj_glibc_1_scratch/libc_pic.a(memcmp-ppc64.os):(.opd+0x0): multiple definition of `__GI_memcmp'
eglibc/opt/freescale/XLMe6500-test/obj_glibc_1_scratch/libc_pic.a(memcmp.os):(.opd+0x0): first defined here
As of now, we don't have any intention to add multi-arch support, so wanted to know the criteria to submit this patch to FSF.
Can I add this flag [--disable-multi-arch] by default for our target or should I try to resolve these multiple definition errors?
Please let me know your comments.
Regards,
Rohit