$ 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 --version 16.04.5) 5.4.0 20160609
gcc (Ubuntu 5.4.0-6ubuntu1~
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
linux- vdso.so. 1 => (0x00007fff289d 1000) x86_64- linux-gnu/ libmpx. so.0 (0x00007fce0497 a000) 64-linux- gnu/libc. so.6 (0x00007fce045b 0000)
libpthread. so.0 => /lib/x86_ 64-linux- gnu/libpthread. so.0 (0x00007fce0439 3000)
/lib64/ ld-linux- x86-64. so.2 (0x00007fce04b8 1000)
$ ldd a.out
libmpx.so.0 => /usr/lib/
libc.so.6 => /lib/x86_