Re: secureplt breaks ld on Alpha Linux

2014-09-02 Thread Richard Henderson
On 09/01/2014 04:53 PM, Mikulas Patocka wrote: > > > On Mon, 1 Sep 2014, Richard Henderson wrote: > >> On 09/01/2014 08:09 AM, Mikulas Patocka wrote: >>> So, what exactly should be done? Can we hack ld so that if filename is >>> "libots.so", lazy binding for symbols in this library is turned of

Re: secureplt breaks ld on Alpha Linux

2014-09-01 Thread Mikulas Patocka
On Mon, 1 Sep 2014, Richard Henderson wrote: > On 09/01/2014 08:09 AM, Mikulas Patocka wrote: > > So, what exactly should be done? Can we hack ld so that if filename is > > "libots.so", lazy binding for symbols in this library is turned off > > automatically? > > Not hack ld.so. > > Modify t

Re: secureplt breaks ld on Alpha Linux

2014-09-01 Thread Richard Henderson
On 09/01/2014 08:09 AM, Mikulas Patocka wrote: > So, what exactly should be done? Can we hack ld so that if filename is > "libots.so", lazy binding for symbols in this library is turned off > automatically? Not hack ld.so. Modify the libots.so binary such that _OtsZero is STT_NOTYPE. The linke

Re: secureplt breaks ld on Alpha Linux

2014-09-01 Thread Mikulas Patocka
On Sun, 31 Aug 2014, Richard Henderson wrote: > On 08/30/2014 06:46 AM, Mikulas Patocka wrote: > > The only possibility to save them is in the code at the beginning of > > _PROCEDURE_LINKAGE_TABLE_ - do you think it would be possible to save the > > registers on the stack here? Or, would it ca

Re: secureplt breaks ld on Alpha Linux

2014-08-31 Thread Richard Henderson
On 08/30/2014 06:46 AM, Mikulas Patocka wrote: > The only possibility to save them is in the code at the beginning of > _PROCEDURE_LINKAGE_TABLE_ - do you think it would be possible to save the > registers on the stack here? Or, would it cause unwind problems? It wouldn't work. > What exactly t

Re: secureplt breaks ld on Alpha Linux

2014-08-30 Thread Mikulas Patocka
On Fri, 29 Aug 2014, Richard Henderson wrote: > On 08/29/2014 12:29 PM, Mikulas Patocka wrote: > > I found out that the patch cc75d373fdb9668f367959f99f0b67e056a6c18a > > (Enable secureplt by default for alpha-linux) committed to binutils git > > breaks ld on alpha. > > > > This is a minimali

Re: secureplt breaks ld on Alpha Linux

2014-08-29 Thread Richard Henderson
On 08/29/2014 12:29 PM, Mikulas Patocka wrote: > I found out that the patch cc75d373fdb9668f367959f99f0b67e056a6c18a > (Enable secureplt by default for alpha-linux) committed to binutils git > breaks ld on alpha. > > This is a minimalized testcase that shows the breakage: > http://people.redhat.

secureplt breaks ld on Alpha Linux

2014-08-29 Thread Mikulas Patocka
Hi I found out that the patch cc75d373fdb9668f367959f99f0b67e056a6c18a (Enable secureplt by default for alpha-linux) committed to binutils git breaks ld on alpha. This is a minimalized testcase that shows the breakage: http://people.redhat.com/~mpatocka/testcases/alpha-ld-bug/ld-bug.tar.xz To