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 string/21791] Unused XXX_chk_XXX functions in libc.a


https://sourceware.org/bugzilla/show_bug.cgi?id=21791

--- Comment #8 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, hjl/pie/static has been created
        at  7cae6abf283e3b886fd71972bcab425fab0a72b8 (commit)

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7cae6abf283e3b886fd71972bcab425fab0a72b8

commit 7cae6abf283e3b886fd71972bcab425fab0a72b8
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Jul 19 16:53:06 2017 -0700

    tunables: Use direct syscall for access (BZ#21744)

    The function maybe_enable_malloc_check, which is called by
    __tunables_init, calls __access_noerrno.  It isn't problem when
    symbol is is in ld.so, which has a special version of __access_noerrno
    without stack protector.  But when glibc is built with stack protector,
    maybe_enable_malloc_check in libc.a can't call the regular version of
    __access_noerrno with stack protector.

    This patch changes how Linux defines the __access_noerrno to be an
    inline call instead and thus preventing defining different build
    rules for ld/static and shared.

        H.J. Lu  <hongjiu.lu@intel.com>
        Adhemerval Zanella  <adhemerval.zanella@linaro.org>

        * elf/dl-tunables.c: Include not-errno.h header.
        * include/unistd.h (__access_noerrno): Remove definition.
        * sysdeps/unix/sysv/linux/access.c (__access_noerrno): Likewise.
        * sysdeps/generic/not-errno.h: New file.
        * sysdeps/unix/sysv/linux/not-errno.h: Likewise.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0a8e4dfff407208c93778a319341373ca97b6c47

commit 0a8e4dfff407208c93778a319341373ca97b6c47
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Jul 19 14:32:42 2017 -0700

    Add _startup_sbrk and _startup_fatal

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=64505141af3981b7b0b7626f6be592a3081acdf5

commit 64505141af3981b7b0b7626f6be592a3081acdf5
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Jul 19 12:04:14 2017 -0700

    Don't compile tst-prelink.c with PIE for GLOB_DAT relocation

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=013e6ae0c1ec5907da188ba0c7c51381d195023d

commit 013e6ae0c1ec5907da188ba0c7c51381d195023d
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Jul 19 09:32:45 2017 -0700

    i386: Define I386_USE_SYSENTER to 0 or 1 and check PIC

    Define I386_USE_SYSENTER to 0 or 1 so that special versions of syscalls
    with "int $0x80" can be provided for static PIE during start up.  Also
    check PIC instead SHARED for PIC version of syscall macros.

        * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
        Define to I386_USE_SYSENTER to 0 or 1 if not defined.
        (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
        (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
        (INTERNAL_SYSCALL_NCS): Likewise.
        (LOADARGS_1): Likewise.
        (LOADARGS_5): Likewise.
        (RESTOREARGS_1): Likewise.
        (RESTOREARGS_5): Likewise.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3d575104abb885234ff6f2375a7668adf78a5b64

commit 3d575104abb885234ff6f2375a7668adf78a5b64
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Jul 18 15:46:40 2017 -0700

    i386: Check PIC in i386 multiarch functions

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0170877b389012fdcf002d27c184f49dd558dfd0

commit 0170877b389012fdcf002d27c184f49dd558dfd0
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Jul 18 15:45:46 2017 -0700

    i386: Check PIC instead of SHARED in start.S

    Support static PIE.  Avoid relocation in static PIE since _start is
    called before it is relocated.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3c59bff3a361e5bfbed1a730ec3d971b578ccb6b

commit 3c59bff3a361e5bfbed1a730ec3d971b578ccb6b
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Jul 18 10:42:48 2017 -0700

    Use hidden visibility for HAVE_STATIC_PIE

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5223a073af6d1a9e6fadd4a598983ca46aa037e7

commit 5223a073af6d1a9e6fadd4a598983ca46aa037e7
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Jul 17 13:53:52 2017 -0700

    Add _dl_relocate_static_pie

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=77ce9e9b62f98745e95e906f80ba7e64095221dd

commit 77ce9e9b62f98745e95e906f80ba7e64095221dd
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Jul 17 08:54:40 2017 -0700

    Define pie-default/default-pie-ldflag for --enable-static-pie

    1. Add $(pie-default) to CFLAGS-.o and CFLAGS-.op.
    2. Add $(default-pie-ldflag) to +link-static-before-libc.
    3. Define +prectorT/+postctorT to $(+prectorS)/$(+postctorS).

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=815c3f19612383b24de8ef35390163ad1c8f4d8c

commit 815c3f19612383b24de8ef35390163ad1c8f4d8c
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Jul 18 05:58:21 2017 -0700

    x86-64: Check if linker supports static PIE

    Need the linker with fix for:

    https://sourceware.org/bugzilla/show_bug.cgi?id=21782

    Binutils 2.29 is OK.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=174f3f5a9ceb0c03331bde49bb7d880ad2669b86

commit 174f3f5a9ceb0c03331bde49bb7d880ad2669b86
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Jul 17 08:36:45 2017 -0700

    Add --enable-static-pie

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6cc035d0f44f01fb78d7e83ddd4acce35b272fcd

commit 6cc035d0f44f01fb78d7e83ddd4acce35b272fcd
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Jul 17 08:17:32 2017 -0700

    Check if linker supports --no-dynamic-linker

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=100e609c9ca0f99bf197c7051263b4523a5a7cec

commit 100e609c9ca0f99bf197c7051263b4523a5a7cec
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Jul 18 05:23:21 2017 -0700

    x86-64: Check PIC instead of SHARED in start.S

    PIC may be the default.

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=cec14c53c977bdbd4b9a6a6d58cfae7e6498dd96

commit cec14c53c977bdbd4b9a6a6d58cfae7e6498dd96
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Jul 18 15:36:20 2017 -0700

    x86: Remove assembly versions of HAS_CPU_FEATURE/HAS_ARCH_FEATURE

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b237dc18cc09c1bf3b7063c4fb44d8c3b112942b

commit b237dc18cc09c1bf3b7063c4fb44d8c3b112942b
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Jul 19 06:54:03 2017 -0700

    i386: Convert IFUNC selectors to C

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e85402fa56ea1a03d0523e37816c4617916d49d5

commit e85402fa56ea1a03d0523e37816c4617916d49d5
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Jul 18 15:35:30 2017 -0700

    x86-64: Convert libmathvec IFUNC selectors to C

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=bbe687437a30b81f06b9c6100d45fe06a350cf1d

commit bbe687437a30b81f06b9c6100d45fe06a350cf1d
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Jul 18 13:56:17 2017 -0700

    x86-64: Convert libm IFUNC selectors to C

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=cad929b762fa1a44d33377b738ad6adc2ef0bcf6

commit cad929b762fa1a44d33377b738ad6adc2ef0bcf6
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Jul 19 08:46:08 2017 -0700

    i386: Don't define multiarch __memmove_chk in libc.a [BZ #21791]

    There is no need to define multiarch __memmove_chk in libc.a.

        [BZ #21791]
        * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
        (MEMCPY_CHK): Define only if SHARED is defined.
        * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
        Likewise.
        * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
        Likewise.

-----------------------------------------------------------------------

-- 
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]