Add v850 linker relaxation

Nick Clifton nickc@redhat.com
Wed Aug 28 23:49:00 GMT 2002


Hi Guys,

  I am applying the attached patch which adds linker relaxation to the
  v850 toolchain.  It also removes the redundant references to the
  v850ea architecture.  The patch was developed a while ago and we now
  have permission to release it to the free software community.

Cheers
        Nick

bfd/ChangeLog
2002-08-28  Catherine Moore  <clm@redhat.com>

	* elf32-v850.c (v850_elf_reloc_map):  Add new relocs.
	(v850-elf-reloc): Don't resolve pc relative relocs.
	(v850_elf_ignore_reloc): New routine.
	(v850_elf_final_link_relocate): Handle new relocs.
	(v850_elf_relax_delete_bytes ): New routine.
	(v850_elf_relax_section): New routine.
	(bfd_elf32_bfd_relax_section): Define.
	(HOWTO): New entries for new relocs.
	* reloc.c (BFD_RELOC_V850_LONGCALL): New reloc.
	(BFD_RELOC_V850_LONGJUMP): New reloc.
	(BFD_RELOC_V850_ALIGN): New reloc.
	* archures.c: Remove redundant v850ea architecture.
	* cpu-v850.c: Remove redundant v850ea support.
	* libbfd.h: Regenerate.
	* bfd-in2.h: Regenerated.
        
gas/ChangeLog
2000-08-28  Catherine Moore  <clm@redhat.com>

	* tc-v850.c (v850_relax): Declare.
	(v850_longcode): New routine.
	(v850_handle_align): New routine.
	(md_pseudo_table):  Add longcall and longjump.
	(md_parse_option): Check for relax option.
	(tc_gen_reloc):  Handle BFD_RELOC_V850_LONGCALL,
	BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
	(md_apply_fix3): Likewise.
	(v850_force_relocation): Likewise.
	(v850_comm): Change the current section.
	(md_assemble):  Ensure that the	correct value is put in the
	fixup.
	(v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
	v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
        Remove redundant v850ea support.
	* tc-v850.h (HANDLE_ALIGN): Define.
	(v850_handle_align): Declare.
	* doc/c-v850.c: Document -mrelax, .longcall and .longjump.

include/elf/ChangeLog
2002-08-28  Catherine Moore  <clm@redhat.com>

	* elf/v850.h (R_V850_LONGCALL, R_V850_ALIGN,
	R_V850_LONGJUMP): New relocations.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: v850.patch
Type: text/x-patch
Size: 57156 bytes
Desc: Add linker relaxation to v850
URL: <https://sourceware.org/pipermail/binutils/attachments/20020828/5fd1e1da/attachment.bin>


More information about the Binutils mailing list