* elf32-mn10200.c (mn10200_elf_relax_section): New function.
authorJeff Law <law@redhat.com>
Fri, 21 Feb 1997 07:14:30 +0000 (07:14 +0000)
committerJeff Law <law@redhat.com>
Fri, 21 Feb 1997 07:14:30 +0000 (07:14 +0000)
commitfd39566111c9527612479c598cd23f3f6d7c0280
tree06625575f01d8d4e3f76b1681afa9394c3884a72
parent48242b28d6862bc912a85499a8d0928098b59695
    * elf32-mn10200.c (mn10200_elf_relax_section): New function.
        (mn10200_elf_relax_delete_bytes): Likewise.
        (mn10200_elf_symbol_address_p): Likewise.
        (mn10200_elf_get_relocated_section_contents): Likewise.
        (bfd_elf32_bfd_relax_section): Define.
        (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
First cut at relaxing linker for the mn10200:

jsr:24 -> jsr:16
jmp:24 -> jmp:16
jmp:16 -> bra:8
bCC .+4;bra:8 -> bCC':8

Reduces code size by about 2.5% for hello world.
bfd/ChangeLog
bfd/elf32-mn10200.c