public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
* ELF/x86 as error message
@ 1994-09-29 22:16 H.J. Lu
  1994-09-30  7:05 ` Eric Youngdale
  1994-09-30 13:01 ` Ken Raeburn
  0 siblings, 2 replies; 3+ messages in thread
From: H.J. Lu @ 1994-09-29 22:16 UTC (permalink / raw)
  To: Eric Youngdale; +Cc: gas2

# gcc-elf -c loop.s
loop.s: Assembler messages:
loop.s:5: Error: Can not do 1 byte pc-relativerelocation

Any reason for ELF/x86 as to do that?

Thanks.

-- 
H.J. Lu
NYNEX Science and Technology, Inc.			hjl@nynexst.com
------
	.text
.byteloop:
         movb %al, (%edi)
         leal  1(%ebx,%edi),%edi
         loop .byteloop
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ELF/x86 as error message
  1994-09-29 22:16 ELF/x86 as error message H.J. Lu
@ 1994-09-30  7:05 ` Eric Youngdale
  1994-09-30 13:01 ` Ken Raeburn
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Youngdale @ 1994-09-30  7:05 UTC (permalink / raw)
  To: hjl; +Cc: gas2

># gcc-elf -c loop.s
>loop.s: Assembler messages:
>loop.s:5: Error: Can not do 1 byte pc-relativerelocation
>
>Any reason for ELF/x86 as to do that?
>
>Thanks.
>
>-- 
>H.J. Lu
>NYNEX Science and Technology, Inc.			hjl@nynexst.com
>------
>	.text
>.byteloop:
>         movb %al, (%edi)
>         leal  1(%ebx,%edi),%edi
>         loop .byteloop
 
	With ELF, there are no 1 byte relocations, so if this is going to be resolved,
it has to be done in such a way that no external relocations are generated.  Since
this is PC-relative, I think this can be done, so I suspect that we simply need to fix
gas so that when these relocations are generated internally that the backend performs
the relocations itself.  In principle it should not be that bad.

	How well does the latest snapshot of GAS work?  Ken claims to have fixed things.

-Eric



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ELF/x86 as error message
  1994-09-29 22:16 ELF/x86 as error message H.J. Lu
  1994-09-30  7:05 ` Eric Youngdale
@ 1994-09-30 13:01 ` Ken Raeburn
  1 sibling, 0 replies; 3+ messages in thread
From: Ken Raeburn @ 1994-09-30 13:01 UTC (permalink / raw)
  To: H.J. Lu; +Cc: gas2, Eric Youngdale

   From: hjl@nynexst.com (H.J. Lu)
   Date: Fri, 30 Sep 94 1:16:15 EDT

   # gcc-elf -c loop.s
   loop.s: Assembler messages:
   loop.s:5: Error: Can not do 1 byte pc-relativerelocation

   Any reason for ELF/x86 as to do that?

In gas/config/tc-i386.c, the `reloc' function tests for OBJ_ELF, and
shouldn't.  The 8- and 16-bit relocations should always be generated.
In the case of ELF, they should always be eliminated before object
file generation, but that happens at a later stage.

And in the error message generated in that function, "pc-relative"
should have a space after it. :-)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1994-09-30 13:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-09-29 22:16 ELF/x86 as error message H.J. Lu
1994-09-30  7:05 ` Eric Youngdale
1994-09-30 13:01 ` Ken Raeburn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).