Re: ROP and JOP attack protection

2016-05-23 Thread Mikhail Maltsev
On 05/23/2016 08:50 PM, Roy Leblanc wrote: > Hello all, > > Does GCC's code generator at this point provide protection against ROP and > JOP attacks? This can be achieved by carefully controlling what opcode bytes > and immediate values are produced. It can also be achieved by rewriting > assem

ROP and JOP attack protection

2016-05-23 Thread Roy Leblanc
Hello all, Does GCC's code generator at this point provide protection against ROP and JOP attacks? This can be achieved by carefully controlling what opcode bytes and immediate values are produced. It can also be achieved by rewriting assembler output as you see with the AntiJOP project. More

Re: LTO and undefined reference to typeinfo

2016-05-23 Thread MM
On 23 May 2016 at 12:53, Szabolcs Nagy wrote: > On 23/05/16 12:36, MM wrote: >> Hello, >> >> g++ (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6) >> GNU gold (version 2.25-17.fc23) 1.11 >> I successfully link a executable in debug mode (-std=c++11 -g) but not in >> release mode (-std=c++11 -flto -O3). All s

Re: LTO and undefined reference to typeinfo

2016-05-23 Thread Szabolcs Nagy
On 23/05/16 12:36, MM wrote: > Hello, > > g++ (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6) > GNU gold (version 2.25-17.fc23) 1.11 > I successfully link a executable in debug mode (-std=c++11 -g) but not in > release mode (-std=c++11 -flto -O3). All sources are compiled with the same > option. Shared lib

LTO and undefined reference to typeinfo

2016-05-23 Thread MM
Hello, g++ (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6) GNU gold (version 2.25-17.fc23) 1.11 I successfully link a executable in debug mode (-std=c++11 -g) but not in release mode (-std=c++11 -flto -O3). All sources are compiled with the same option. Shared libraries are used. The compiler driver is use

Re: when gcc support -z ?

2016-05-23 Thread Florian Weimer
On 05/23/2016 07:59 AM, zet wrote: hello, all just like the title, when gcc support -z keyword? This seems to be a question for the gcc-help mailing list or a binutils list. Anyway, GCC already implements -z by forwarding to the linker (hence the binutils aspect). Florian