Comment 15 for bug 1623418

Revision history for this message
Matthias Klose (doko) wrote :

$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ gcc -fcheck-pointer-bounds -mmpx foo.c
$ ldd a.out
        linux-vdso.so.1 => (0x00007fff289d1000)
        libmpx.so.0 => /usr/lib/x86_64-linux-gnu/libmpx.so.0 (0x00007fce0497a000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fce045b0000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fce04393000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fce04b81000)