aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1997-02-21 07:21:32 +0000
committerJeff Law <law@redhat.com>1997-02-21 07:21:32 +0000
commit7c49f021ca0b97d27913ad75044a7a767a115393 (patch)
tree66482bd24abd3224b1d6ebd641c4a26144cb074f /bfd
parentc17db7cfb4c3f065cd2e38fc9fa9984512b193cc (diff)
downloadgdb-7c49f021ca0b97d27913ad75044a7a767a115393.zip
gdb-7c49f021ca0b97d27913ad75044a7a767a115393.tar.gz
gdb-7c49f021ca0b97d27913ad75044a7a767a115393.tar.bz2
Twiddle some comments to more accurately reflect reality.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/elf32-mn10200.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/bfd/elf32-mn10200.c b/bfd/elf32-mn10200.c
index ee626a0..1006dda 100644
--- a/bfd/elf32-mn10200.c
+++ b/bfd/elf32-mn10200.c
@@ -491,12 +491,12 @@ mn10200_elf_relocate_section (output_bfd, info, input_bfd, input_section,
* jsr:24 -> jsr:16 2 bytes
* jmp:24 -> jmp:16 2 bytes
- - jmp:16 -> bra:8 1 byte
+ * jmp:16 -> bra:8 1 byte
- - If the previous instruction is a conditional branch
+ * If the previous instruction is a conditional branch
around the jump/bra, we may be able to reverse its condition
and change its target to the jump's target. The jump/bra
- can then be deleted. 1 byte
+ can then be deleted. 2 bytes
- mov abs24 -> mov abs16 2 byte savings
@@ -506,6 +506,9 @@ mn10200_elf_relocate_section (output_bfd, info, input_bfd, input_section,
- Most instructions which accept d24 can relax to d16 2 bytes
- Most instructions which accept d16 can relax to d8 1 byte
+ abs24, imm24, d24 all look the same at the reloc level. It
+ might make the code simpler if we had different relocs for
+ the various relaxable operand types.
A '*' indicates a case this code can handle. */