This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/16689] New: [powerpc] Using bzero with -static fails for PPC32
- From: "azanella at linux dot vnet.ibm.com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 11 Mar 2014 12:26:54 +0000
- Subject: [Bug libc/16689] New: [powerpc] Using bzero with -static fails for PPC32
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16689
Bug ID: 16689
Summary: [powerpc] Using bzero with -static fails for PPC32
Product: glibc
Version: 2.19
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: azanella at linux dot vnet.ibm.com
CC: drepper.fsp at gmail dot com
Using bzero in a static build for a GLIBC 2.19+ build for powerpc32 configure
with --with-cpu=power4 of newer (to use IFUNC) fails with the following
message:
$ cat testcase.c
#include <strings.h>
int main ()
{
char s[4096*16];
size_t i;
bzero (s, sizeof s);
for (i=0; i<sizeof s; ++i)
if (s[i] != '\0')
printf ("%i != 0\n", i);
return 0;
}
$ gcc -static testcase.c
/tmp/ccLzAimd.o: In function `main':
testcase.c:(.text+0x2c): undefined reference to `bzero'
collect2: error: ld returned 1 exit status
The issue is bzero symbol was not being built for static build and the default
ppc implementation (sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S)
is calling an non existing symbol in static build (__memset_ppc)
--
You are receiving this mail because:
You are on the CC list for the bug.