This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A PREFIX_SEPARATOR bug in binutils 2.9


   From: hjl@lucon.org (H.J. Lu)
   Date: Tue, 21 Apr 1998 12:24:22 -0700 (PDT)

   If we don't change, PREFIX_SEPARATOR is just a dummy for x86/ELF. If
   someone writes some asm code for both ELF/a.out and use '/' as
   PREFIX_SEPARATOR, the error may not be discovered at the assembly time.

Yes, this is one of the things you have to be aware of if you want to
write code that will work for both a.out and ELF.

   Martynas Kunigelis <kunimart@pit.ktu.lt> found this while working on
   16bit support in gas. Since PREFIX_SEPARATOR has never really been used
   and has never worked, I suggest we change it to somethin else. Martynas
   used '\\' for x86/ELF. But I don't like it. On the other hand, I haven't
   found one I really like. I guess I can live with '\\'. We can just
   define PREFIX_SEPARATOR as '\\' for all x86. At least, it will work
   if someone really wants to use it.

Why not encourage people to write the prefix on a separate line, which
works for both a.out and ELF?

Does anybody know how the SCO assembler works for code like this?
	data16
	mov 	foo,%eax

Ian