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/17841] Build failure if compiler defaults to PIE


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

--- Comment #7 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/pr17841/master has been created
        at  f9a8dda341d1493d7666b5242a0ae42c385bc632 (commit)

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

commit f9a8dda341d1493d7666b5242a0ae42c385bc632
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Mar 2 14:53:11 2015 -0800

    Compile archives with -fno-pie

    When compiler defaults to PIE, we compile archives with -fno-pie.   Since
    archives won't be used with PIE, compile them with -fpie isn't necessary.

        [BZ #17841]
        * Makeconfig (no-pie-ccflag): New.  Set to -fno-pie.
        (pic-default): Don't define if $(no-pie-ccflag) is -fno-pie.
        (test-object-suffix): New.
        * Makerules (archive-objects): New.  Set before including
        extra-lib.mk.
        ($(archive-objects)): New. New rule to append $(no-pie-ccflag)
        to CFLAGS.
        * extra-lib.mk (archive-objects): New.
        * crypt/Makefile ($(objpfx)md5test): Replace ".o" with
        $(test-object-suffix).
        ($(objpfx)md5test-giant): Likewise.
        ($(objpfx)sha256test): Likewise.
        ($(objpfx)sha512test): Likewise.

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

commit 5307cac2785efd24eef5a21b6ee6e83a4ed46ac7
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.

        [BZ #17841]
        * Makeconfig (no-pie-ldflag): New.
        (+link): Renamed to ...
        (+link-no-pie): This.  Add $(no-pie-ldflag).
        (+link-tests): Renamed to ...
        (++link-no-pie-tests): This.  Add $(no-pie-ldflag).
        (+link): New.  Set to $(+link-no-pie) or $(+link-pie), depend on
        if PIE is default.
        (+link-tests): New.  Set to $(+link-pie-tests) or
        $(+link-no-pie-tests), depend on if PIE is default.
        * Rules (binaries-no-pie-tests): New.
        (binaries-no-pie-notests): Likewise.
        ($(addprefix $(objpfx),$(binaries-no-pie-tests))): Likewise.
        ($(addprefix $(objpfx),$(binaries-no-pie-notests))): Likewise.
        * 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.
        * elf/Makefile (tests-no-pie): Set to tst-dlopen-aout.
        (tests): Replace tst-dlopen-aout with $(tests-no-pie).
        * math/Makefile (tests): Replace atest-exp atest-sincos
        atest-exp2 with $(tests-no-pie).
        (tests-no-pie): New.

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

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