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


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

More BFD_ASSEMBLER bugs in symbols.c


> 
>    Date: Sat, 5 Jun 1999 02:55:15 -0700 (PDT)
>    From: hjl@varesearch.com (H.J. Lu)
> 
>    Also, the DWARF stuff in gas uses bfd_vma. But
>    it won't work if BFD_ASSEMBLER is not defined.
> 

There are many more BFD_ASSEMBLER bugs in symbols.c.

#define LOCAL_SYMBOL_CHECK(s) 0
#define local_symbol_convert(s) ((symbolS *) s)

is not enough if BFD_ASSEMBLER is not defined since

if (LOCAL_SYMBOL_CHECK(s))
  {
     Many BFD_ASSEMBLER specific stuffs are used here.
  }

I had to put

#ifded BFD_ASSEMBLER
#endif

around many 

if (LOCAL_SYMBOL_CHECK(s))

Just cross-compile it for an a.out system. I used
i386linux.

-- 
H.J. Lu (hjl@gnu.org)

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