[PATCH] Add .set arch=FOO support to MIPS gas.

Alexandre Oliva aoliva@redhat.com
Tue Jul 1 19:22:00 GMT 2003


On Jun 30, 2003, cgd@broadcom.com wrote:

> [ alex: cc'd you because IIRC you'd seen some of this... ]
> At 30 Jun 2003 13:05:25 -0700, Chris G. Demetriou wrote:
>> Hmm.  it looks like upon hitting <text_label>, the dissassembler
>> options get changed?!
>> 
>> OK, this is exceeding my pre-lunch ability to deal with alien
>> behaviour.  anybody have a clue what's going on here?

> OK, it looks like prior to text_labe, info->symbols is NULL and so the
> disassembler doesn't know how to look for the ELF header, and
> therefore loses.

/me thinks the disassembler shouldn't be attempting to guess any of
this, it should instead be passed what flavor of assembly to spit out,
and this piece of code removed from it.

Meanwhile...

> Is there any reason that the section isn't checked and used to access
> the BFD, instead of symbols?

I can't think of any other than violation of abstraction layers.

> The only drawback that I can see is that there's currently no
> bfd_section_owner() macro, but that's easy enough to address.  8-)

Introducing such a macro would address my concerns.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer



More information about the Binutils mailing list