Re: prime numbers

Frank Kotler <[email protected]>
Newsgroups org.kernel.vger.linux-assembly
Message-ID <[email protected]>
Paul Irofti wrote:

...
> sieve.o(.text+0x1):sieve.s:20: relocation truncated to fit: R_386_8 .data

...
>     movb $test, %dl

Pretty sure you want "movb test, %dl" - "$test" indicates that you're 
trying to move the *address* of your "test" variable (not the contents) 
into %dl... and it won't fit! (...etc.)

Best,
Frank
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.