This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/12810] New: __memmove_chk_ssse3 not in libc.a


http://sourceware.org/bugzilla/show_bug.cgi?id=12810

           Summary: __memmove_chk_ssse3 not in libc.a
           Product: glibc
           Version: 2.13
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: aj@suse.de


Compiling a simple static test program fails:

$ gcc t.c -O3 -static -D_FORTIFY_SOURCE=2
t.c: In function âmklongâ:
t.c:12:9: warning: function returns address of local variable [enabled by
default]
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../lib64/libc.a(memmove_chk.o):
In function `__memmove_chk':
/usr/src/packages/BUILD/glibc-2.13/debug/../sysdeps/x86_64/multiarch/memmove_chk.c:31:
undefined reference to `__memmove_chk_ssse3_back'
/usr/src/packages/BUILD/glibc-2.13/debug/../sysdeps/x86_64/multiarch/memmove_chk.c:31:
undefined reference to `__memmove_chk_ssse3'
collect2: ld returned 1 exit status

$ cat t.c
#include <string.h>

static char *
mklong(const char *str, int ch)
{
        char copy[64];
        size_t len;

        len = strlen(str) + 2;
        (void)memmove(copy, str, len - 3);
        copy[len - 3] = '\0';
        return (copy);
}

int
main (int argc, char **argv)
{
  (void)mklong (argv[0], 'a');
  return 0;
}

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]