[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compilation errors
From: |
Kevin Ryde |
Subject: |
Re: Compilation errors |
Date: |
Wed, 18 Sep 2002 07:16:44 +1000 |
User-agent: |
Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (i386-debian-linux-gnu) |
"Martin J. Muench" <address@hidden> writes:
>
> tmp-gcd_1.s:400: Error: Unimplemented segment type 6 in
> parse_operand($_GLOBAL_OFFSET_TABLE_+[.-Ltable])
> ...
> addl $_GLOBAL_OFFSET_TABLE_+[.-Ltable], %ebx
What version of gas is this?
We're aware of a couple of bugs in old versions of gas related to
expressions like this, but I thought the use of "addl" was safe, in
fact I thought that's what gcc itself generates for PIC.
If you like you can check what gcc does by compiling
int table[10];
int foo (int n) { return table[n]; }
with
gcc -fPIC -S foo.c
and having a look at foo.s.
> Any ideas?
Using --disable-shared to get a static-only build should get you
going.