This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, MPX runtime 1/2] Integrate MPX runtime library
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: Ilya Enkovich <enkovich dot gnu at gmail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 12 Nov 2014 09:36:27 +0100
- Subject: Re: [PATCH, MPX runtime 1/2] Integrate MPX runtime library
- Authentication-results: sourceware.org; auth=none
- References: <20141111153449 dot GB52080 at msticlxl57 dot ims dot intel dot com> <CAFiYyc2sTP7Jy7PQKXvpU_Sc0Z0P2mRQN-Nem+9aGaKZCQft-A at mail dot gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Nov 12, 2014 at 09:30:59AM +0100, Richard Biener wrote:
> On Tue, Nov 11, 2014 at 4:34 PM, Ilya Enkovich <enkovich.gnu@gmail.com> wrote:
> > Hi,
> >
> > This patch integrates MPX runtime library into GCC source tree. MPX runtime is responsible for initialization of MPX feature in HW, signal handling, reporting etc. Library is linked to codes compiled with -mmpx.
>
> What happens if you omit -mmpx from the linker command-line?
> What happens if you mix -mmpx and non -mmpx objects?
>
> I wonder why this is not part of glibc and whether initialization is needed
> is communicated by some ELF flag in the executable/library which
> is determined by the linker.
Because glibc is not a kitchen sink. And, I think most of programs in
typical uses aren't going to be built with -mmpx, so it isn't appropriate
to pay the price in all programs for something used only sometimes.
Jakub