PATCH: Fix gas/mips/vr4120.d
H. J. Lu
hjl@lucon.org
Mon Sep 30 18:21:00 GMT 2002
On Mon, Sep 30, 2002 at 04:36:53PM -0700, cgd@broadcom.com wrote:
> At Mon, 30 Sep 2002 21:06:28 +0000 (UTC), "H. J. Lu" wrote:
> > FYI, I checked in the following patch to fix gas/mips/vr4120.d.
> >
> > 2002-09-30 H.J. Lu <hjl@gnu.org>
> >
> > * gas/mips/vr4120.d: Pass -m mips:4120 to objdump.
>
> Err, uh, I don't understand, why is this change necessary?
>
> (I don't really care, I just want to understand.)
>
> Assuming ELF, the assemble w/ -march=vr4120 causes the 4120 'machine
> type' bits to be set in the ELF header (for better or for worse).
>
> That in turn seems to cause obdump to dump the correct disassembly,
> even without the specific flag.
>
> (This test could be seen as testing two things: disassembly, and ELF
> machine type handling. You effectively removed the test for the
> latter.)
>
You are right.
>
> (FWIW, it passes just fine on mips-linux w/o the additional flag to
> objdump. Also, you changed more than that according to your patch...
> 8-)
I checked in this patch instead.
H.J.
---
2002-09-30 H.J. Lu <hjl@gnu.org>
* gas/mips/vr4120.d: Use "#pass" instead of "#..." to skip the
rest of output.
--- vr4120.d.mips Mon Sep 30 09:13:32 2002
+++ vr4120.d Mon Sep 30 17:09:53 2002
@@ -26,4 +26,4 @@ Disassembly of section \.text:
+4c: 00a62428 maccs a0,a1,a2
+50: 00a62068 maccu a0,a1,a2
+54: 00a62468 maccus a0,a1,a2
-#...
+#pass
More information about the Binutils
mailing list