Re: [Tinycc-devel] No lazy PLTGOT relocation for TinyCC generated executables

2015-05-21 Thread Thomas Preud'homme
On May 21, 2015 9:58:07 AM GMT+08:00, Michael Matz wrote: > Hi, > Hi Michael, I knew you'd know :-) > > No, the missing of .got.plt is a red herring (it's used to implement a > > security feature to isolate .got slots that can be written to also > after > program relocation from those can

Re: [Tinycc-devel] No lazy PLTGOT relocation for TinyCC generated executables

2015-05-20 Thread Michael Matz
Hi, On Thu, 21 May 2015, Thomas Preud'homme wrote: On May 18, 2015 11:17:35 PM GMT+08:00, Sergey Korshunoff wrote: tries comparing the output of readelf -a for an hello world program but there are too many differences and I didn't spot anything obvious there is no .got.plt section in the

Re: [Tinycc-devel] No lazy PLTGOT relocation for TinyCC generated executables

2015-05-20 Thread Thomas Preud'homme
On May 18, 2015 11:17:35 PM GMT+08:00, Sergey Korshunoff wrote: > > tries comparing the output of readelf -a for an hello world program > but there are too many > > differences and I didn't spot anything obvious > > there is no .got.plt section in the tcc generated exe. gcc don't > generate this

Re: [Tinycc-devel] No lazy PLTGOT relocation for TinyCC generated executables

2015-05-18 Thread Sergey Korshunoff
> tries comparing the output of readelf -a for an hello world program but there > are too many > differences and I didn't spot anything obvious there is no .got.plt section in the tcc generated exe. gcc don't generate this section if bind_now. no (FLAGS attribute too. ___

Re: [Tinycc-devel] No lazy PLTGOT relocation for TinyCC generated executables

2015-05-18 Thread Thomas Preud'homme
On May 18, 2015 7:46:26 PM GMT+08:00, Thomas Preud'homme wrote: > Hi all, > > I'm currently working on distention, cleaning up and refactoring Err, documentation. > tccelf.c. The process already uncovered some bugs and one of them is > that PLT0 is broken for ARM [1]. Since binaries are workin

[Tinycc-devel] No lazy PLTGOT relocation for TinyCC generated executables

2015-05-18 Thread Thomas Preud'homme
Hi all, I'm currently working on distention, cleaning up and refactoring tccelf.c. The process already uncovered some bugs and one of them is that PLT0 is broken for ARM [1]. Since binaries are working, I investigated and found that the lazy relocation of PLTGOT entries is not in effect. When _