debug_apply_rela_addends fixme

Nick Clifton nickc@redhat.com
Wed Oct 31 16:36:00 GMT 2007


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.

Cheers
   Nick

bfd/ChangeLog
2007-10-31  Nick Clifton  <nickc@redhat.com>

	* 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.

gas/testsuite/ChangeLog
2007-10-31  Nick Clifton  <nickc@redhat.com>

	* gas/cfi/cfi-common-6.d: Allow for possible relocation of the
	.debug.eh_frame section.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: readelf.rel.patch.bz2
Type: application/x-bzip2
Size: 4424 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20071031/3bee0b1f/attachment.bz2>


More information about the Binutils mailing list