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-16 Thread Nick Clifton
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. Cheers Nick ___ bug-binutils mailing list bu

Re: GOT error in gas

2007-02-15 Thread Nick Clifton
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 talking

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 it is an absolute symbol

Re: GOT error in gas

2007-02-12 Thread Andreas Schwab
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 it is an absolute symbol. Thus what you get is undefined behaviour.

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