This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Add .set arch=FOO support to MIPS gas.
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: cgd at broadcom dot com
- Cc: ica2_ts at csv dot ica dot uni-stuttgart dot de, binutils at sources dot redhat dot com
- Date: 01 Jul 2003 16:21:59 -0300
- Subject: Re: [PATCH] Add .set arch=FOO support to MIPS gas.
- Organization: GCC Team, Red Hat
- References: <20030628224804.GC31215@rembrandt.csv.ica.uni-stuttgart.de><mailpost.1056840505.25524@news-sj1-1><yov51xxdjxif.fsf@ldt-sj3-121.sj.broadcom.com><20030629110547.GB19199@rembrandt.csv.ica.uni-stuttgart.de><yov5of0gnnph.fsf@ldt-sj3-121.sj.broadcom.com><20030630092932.GI8827@rembrandt.csv.ica.uni-stuttgart.de><mailpost.1056965395.19629@news-sj1-1><yov5d6gv74qm.fsf@ldt-sj3-010.sj.broadcom.com><mailpost.1057000814.6862@news-sj1-1><yov57k7372m2.fsf@ldt-sj3-010.sj.broadcom.com><yov53chr6zby.fsf@ldt-sj3-010.sj.broadcom.com>
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