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]

Re: debug_apply_rela_addends fixme

Hi Guys,

Alan Modra wrote:
I thought I had a fix for this, until I ran into the need to apply rel
relocs too.

* readelf.c (debug_apply_rela_addends): Clarify FIXME.

There was no really good reason why we did not support rel relocs, so I have gone ahead and added that support, enabled pc-rel relocs (per Alan's suggestion in a private email) and rechecked everything. This is what I am checking in.


2007-10-31  Nick Clifton  <>

	* dwarf.c (is_relocatable): Remove definition.
	(display_debug_frames): Remove check in is_relocatable.
	* dwarf.h (is_relocatable): Remove declaration.
	* objdump.c (is_relocatable): New static definition.
	* readelf.c (dump_relocations): Make the function void.
	(is_32bit_abs_reloc): Add support for x86, Arc, Arm, D10V, Dlx,
	OR32 and Score.
	(is_32bit_pcrel_reloc): Add support for x86 and Arm.
	(is_16bit_abs_reloc): Add support for D10V.
	(debug_apply_rela_addends): Rename to debug_apply_relocations.
	Add code to support rel relocations.
	(load_debug_section): Fix call to debug_apply_relocations.
	(get_file_header): Remove setting of is_relocatable.

2007-10-31  Nick Clifton  <>

	* gas/cfi/cfi-common-6.d: Allow for possible relocation of the
	.debug.eh_frame section.

Attachment: readelf.rel.patch.bz2
Description: BZip2 compressed data

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