This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch/testcase] gdb.asm/m32r.inc: fix compile error
On Thu, Aug 07, 2003 at 11:22:02AM +0900, Kei Sakamoto wrote:
> > -nostartfiles should prevent the inclusion of crt* but not of libgloss;
> > libgloss is a matter for -nostdlib, which we _don't_ use. I see that
> > in the m32r GCC port, -lgloss is in ENDFILE_CPU_SPEC, which is unlike
> > any other port.
> >
> > I don't want to mess with that right now, but does adding -lgloss to
> > ${link-flags} in asm-source.exp fix the problem?
>
> It worked. I removed the declarations of symbols from the patch.
>
> By the way, I noticed another bug in m32r.inc. In m32r.inc, there is
> a sequential nop after bl instruction, which is illegal. M32r simulator
> doesn't care about it, but real m32r chips cause exceptions.
> The attached new patch fixes this problem too.
>
> Kei
>
> ===
>
> 2003-08-07 Kei Sakamoto <sakamoto.kei@renesas.com>
>
> * gdb.asm/asm-source.exp : Add -lgloss to link-flags.
> * gdb.asm/m32r.inc : Remove an illegal nop after bl instruction.
> Replace ld24 with seth/add3.
Thanks, this is OK - I've checked it in.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer