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 #11 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  ca1f728cbefd6955735087e45d80620113623b3b (commit)

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

commit ca1f728cbefd6955735087e45d80620113623b3b
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.
        * math/Makefile (LDFLAGS-atest-exp): New.
        (LDFLAGS-atest-sincos): Likewise.
        (LDFLAGS-atest-exp2): Likewise.

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

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

    Support compilers defaulting to PIE

    To support building glibc with GCC 6 configured with --enable-default-pie,
    which generates PIE by default, we need to build programs as PIE.  But
    elf/tst-dlopen-aout must not be built as PIE since it tests dlopen on
    ET_EXEC file and PIE is ET_DYN.

        [BZ #17841]
        * Makeconfig (no-pie-ldflag): New.
        (+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.
        * elf/Makefile (LDFLAGS-tst-dlopen-aout): 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]