This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Commit: RL78: Generate complex relocs for DWARF sections

Hi Guys,

  I am applying the patch below to update the RL78 port so that it uses
  complex relocations for entries in the .debug_line section.  This
  means that when code sections are relaxed by the linker, the
  .debug_line information will stay up to date.

  Whilst implementing this patch I found that readelf did not know how
  to handle RL78 complex relocations and that the special_function field
  in the RL78 reloc howto table had not been set up to handle complex
  relocs.  So the patch also fixes both of these problems.


2015-04-14  Nick Clifton  <>

	* config/tc-rl78.h (TC_LINKRELAX_FIXUP): Define.

2015-04-14  Nick Clifton  <>

	* gas/lns/lns.exp: Add RL78 to list of targets using

2015-04-14  Nick Clifton  <>

	* elf32-rl78.c (RL78_OP_REL): New macro.
	(rl78_elf_howto_table): Use it for complex relocs.
	(get_symbol_value): Handle the cases when the info or status
	arguments are NULL.
	(get_romstart): Cache the status returned by get_symbol_value.
	(get_ramstart): Likewise.
	(RL78_STACK_PUSH): Generate an error message if the stack
	(RL78_STACK_POP): Likewise for underflows.
	(rl78_compute_complex_reloc): New function.  Contains the basic
	processing code for all RL78 complex relocs.
	(rl78_special_reloc): New function.  Provides special reloc
	handling for complex relocs.
	(rl78_elf_relocate_section): Use rl78_compute_complex_reloc.
	(rl78_offset_for_reloc): Likewise.

2015-04-14  Nick Clifton  <>

	* readelf.c (target_specific_reloc_handling): Add code to handle
	RL78 complex relocs.

Attachment: fred
Description: Binary data

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]