This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX
- From: Ilya Enkovich <enkovich dot gnu at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Jakub Jelinek <jakub at redhat dot com>, Richard Biener <richard dot guenther at gmail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Uros Bizjak <ubizjak at gmail dot com>
- Date: Wed, 18 Mar 2015 20:34:51 +0300
- Subject: Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX
- Authentication-results: sourceware.org; auth=none
- References: <CAMbmDYZ2cd3MxwBEn5XUtsx=bV_a68-pWnLxE6=iE9M2BrY=KA at mail dot gmail dot com> <CAMe9rOr=EKOdg-coaFD6p7Ch746ogCMMQ0Oi8X=j+iG8QEp5ZQ at mail dot gmail dot com> <CAMbmDYYvawszQfnxfJBnkMa6tQ4SuS+jzE9j33rs+nDM656TEQ at mail dot gmail dot com> <CAMe9rOorXdhkXoSB6YtuEqf75LKw_bJGyz6cKxWcAi0do-cRCA at mail dot gmail dot com> <CAFiYyc2vFJe=8ucExq7Vf2iixg9pQb3KwjpdWw7KRnk_J4FjJw at mail dot gmail dot com> <CAMbmDYY17OTkGkLb1iL+HKvt7nvyJjgT5XnFpDQOZhDwG6B7_w at mail dot gmail dot com> <CAMe9rOrkWyGkv7ndR9rQBL2rG5zg8g8_oZTB222u5k7YHE14NA at mail dot gmail dot com> <CAMbmDYbUpZsBDOrB_SC2=EYo6g19BaRa=jjm6vDYGD4ZFziXEA at mail dot gmail dot com> <CAMe9rOqiBC9AF=hxMX8C2x2-WpHmHXBZpyv4xYdg96iO+NDpiw at mail dot gmail dot com> <CAMbmDYaNDDc6d_K61_kzzaZnfaieWvvyRLvy3kUvf=Eb6C8CXw at mail dot gmail dot com> <20150318140224 dot GL1746 at tucnak dot redhat dot com> <CAMe9rOq64hQyM+G+d_XguaFUHyOSLh4QM_yHeSxzJm28uXLe4w at mail dot gmail dot com> <CAMe9rOoQ33JnsEk6m8dNGACty+zgsS24jkgWN7fAQoa9FGKZTw at mail dot gmail dot com> <CAMbmDYbqxdBMs2XjDAL2ia5rwTwRfqSPDoBPS+=oJEBcJ1FJuw at mail dot gmail dot com> <CAMe9rOq0fw+b+UGvRs-Fr3+43ud7jy9xe_EKsP0oXftB+0UdiA at mail dot gmail dot com> <CAMbmDYZq8ww6Ot_EoRJ5oJCPppiRc-_F1DzwQY3i+b8R6qWaJQ at mail dot gmail dot com> <CAMe9rOp7yEs7Mv4RxLD7bW3yVyLLaovd+rUqr76U5sCwiVrVvg at mail dot gmail dot com>
2015-03-18 20:14 GMT+03:00 H.J. Lu <hjl.tools@gmail.com>:
> On Wed, Mar 18, 2015 at 10:13 AM, Ilya Enkovich <enkovich.gnu@gmail.com> wrote:
>> 2015-03-18 19:45 GMT+03:00 H.J. Lu <hjl.tools@gmail.com>:
>>> On Wed, Mar 18, 2015 at 9:14 AM, Ilya Enkovich <enkovich.gnu@gmail.com> wrote:
>>>>
>>>> Instrumented binary used with legacy libraries is a supported usage
>>>> model. Each user determines his own level of security.
>>>>
>>>
>>> It doesn't mean we should leave a door open. Are we supposed to
>>> detect this with MPX:
>>>
>>> [hjl@skylakeclient bug-1]$ cat x.c
>>> #include <string.h>
>>>
>>> int
>>> main ()
>>> {
>>> char buf[10];
>>> memset(buf, 'a', 11);
>>> return 0;
>>> }
>>> [hjl@skylakeclient bug-1]$
>>>
>>> I believe we should, not maybe. We shouldn't silent fail it
>>> when linker doesn't support -z bndplt.
>>
>> It depends on compiler flags and libraries used and is up to user to
>> decide. User may be warned during libmpx configuration.
>>
>
> What is "USER"? The one who build GCC may not be same
> person who uses GCC.
>
The person who build GCC determines its default behavior. User either
uses it with default settings or overwrites it with own flags. You may
warn the person who build GCC that his config has no '-z bndplt' by
default.
Ilya
>
> --
> H.J.
- References:
- Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX
- Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX
- Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX
- Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX
- Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX
- Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX
- Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX
- Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX
- Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX
- Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX
- Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX
- Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX
- Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX
- Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX
- Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX
- Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX
- Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX