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? &

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 sta

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 alph

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

[PATCH] don't crash on overflow on hppa64

2011-07-27 Thread Mikulas Patocka
Hi This patch fixes crash that happens if we build too big linux kernel so that offsets overflow. There are several bugs in elf64-hppa.c: 1. offset is 64-bit, but 32-bit format "%lx" is used. This causes parameters mismatch 2. eh may be NULL. If it is NULL, I changed the code to print "unknown"

Re: GOT error in gas

2007-02-19 Thread Mikulas Patocka
Hi Mikulas, I see but gas should at least write error and not generate incorrect code. In which case please could you create a bugzilla entry for this so that we can track this problem properly. I did. Mikulas Cheers Nick ___ bug-binutils

Re: GOT error in gas

2007-02-16 Thread Mikulas Patocka
Hi Hi Mikulas, __asm__ (".global number; number = 0x12345678"); extern void number; These two declarations are not compatible. The latter declares number as a data symbol, but the former defines it is an absolute symbol. I thought that .types do not care for linking, Andreas is not ta

Re: GOT error in gas

2007-02-12 Thread Mikulas Patocka
On Mon, 12 Feb 2007, Andreas Schwab wrote: Mikulas Patocka <[EMAIL PROTECTED]> writes: __asm__ (".global number; number = 0x12345678"); extern void number; These two declarations are not compatible. The latter declares number as a data symbol, but the former defines i

GOT error in gas

2007-02-12 Thread Mikulas Patocka
Hi I found the following issue. This program: #include __asm__ (".global number; number = 0x12345678"); extern void number; int main() { printf("%p\n", &number); return 0; } works when compiled without -fPIC and segfaults when compiled with -fPIC. When the program is broken to