[Bug libc/17836] -pg -pie doesn't work on x86-64

cvs-commit at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Fri Jan 23 21:55:00 GMT 2015


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

--- Comment #4 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/pr17711 has been created
        at  28676b534c03a38865caa3cdc6a71d72d6f2aa43 (commit)

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

commit 28676b534c03a38865caa3cdc6a71d72d6f2aa43
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Jan 14 06:29:04 2015 -0800

    Support compilers defaulting to PIE

    If PIE is the default, we need to build programs as PIE.

        * Makeconfig (+link): Set to $(+link-pie) if default to PIE.
        (+link-tests): Set to $(+link-pie-tests) if default to PIE.
        * config.make.in (build-pie-default): New.
        * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
        is default.  AC_SUBST.
        * configure: Regenerated.

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

commit 4cc3915afd5709b5f804b86afc60f7f138caa692
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Jan 13 06:19:44 2015 -0800

    Compile gcrt1.o with -fPIC

    We compile gcrt1.o with -fPIC to support both "gcc -pg" and "gcc -pie -pg".

        [BZ #17836]
        * csu/Makefile (extra-objs): Add gmon-start.o if not builing
        shared library.  Add gmon-start.os otherwise.
        ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
        $(objpfx)gmon-start.os if builing shared library.
        ($(objpfx)g$(static-start-installed-name)): Likewise.

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

commit 62a5f9d46acb243629a3fc5782c22957561f794c
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Fri Dec 19 06:30:31 2014 -0800

    Compile vismain with -fPIC and link with -pie

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.



More information about the Glibc-bugs mailing list