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....@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