This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: Patch H8/300 : Linker relaxation for ldc and stc instructions
- From: "Anil Paranjape" <AnilP1 at KPITCummins dot com>
- To: "Kazu Hirata" <kazu at cs dot umass dot edu>
- Cc: <binutils at sources dot redhat dot com>
- Date: Sat, 24 Jan 2004 12:06:54 +0530
- Subject: RE: Patch H8/300 : Linker relaxation for ldc and stc instructions
Hi Kazu,
Sorry I missed it again.
Please find a patch which adds into comments for relaxation of ldc.w and stc.w instructions.
--- elf32-h8300.c.old Mon Jan 19 22:32:45 2004
+++ elf32-h8300.c Sat Jan 24 17:32:50 2004
@@ -1198,7 +1198,7 @@ elf32_h8_relax_section (bfd *abfd, asect
"band", "bclr", "biand", "bild", "bior", "bist",
"bixor", "bld", "bnot", "bor", "bset", "bst", "btst",
- "bxor", and "mov.[bwl]"
+ "bxor", "ldc.w", "stc.w" and "mov.[bwl]"
We may relax this into an 16-bit absolute address if it's
in the right range. */
--- coff-h8300.c.old Mon Jan 19 22:32:44 2004
+++ coff-h8300.c Sat Jan 24 17:32:52 2004
@@ -780,8 +780,8 @@ h8300_reloc16_extra_cases (bfd *abfd, st
instructions:
"band", "bclr", "biand", "bild", "bior", "bist", "bixor",
- "bld", "bnot", "bor", "bset", "bst", "btst", "bxor", and
- "mov.[bwl]"
+ "bld", "bnot", "bor", "bset", "bst", "btst", "bxor", "ldc.w",
+ "stc.w" and "mov.[bwl]"
We may relax this into an 16-bit absolute address if it's in
the right range. */
Regards,
Anil
-----Original Message-----
From: Kazu Hirata [mailto:kazu@cs.umass.edu]
Sent: Saturday, January 24, 2004 12:57 AM
To: Anil Paranjape
Cc: binutils@sources.redhat.com
Subject: Re: Patch H8/300 : Linker relaxation for ldc and stc
instructions
Hi Anil,
> ChangeLog :
> 2004-01-21 Anil Paranjpe <anilp1@KPITCummins.com>
> * h8300.h : Pass MEMRELAX flag for O_LDC and O_STC.
Would mind adding comments to bfd/{coff,elf32}-h8300.c, saying ldc and
stc are relaxed? In the past, mis-relaxation has happened, so
comments are big help in case of problems.
Kazu Hirata