[patch] PPC small data symbols.

Paul Brook paul@codesourcery.com
Wed Jun 29 01:22:00 GMT 2005
VxWorks executables are relocatable. One side-effect of this is that the 
linker provided small data base symbols must be section relative, not 
absolute.

The attached patch fixes this by passing an option section argument to 
_bfd_elf_provide_symbol.

Tested --enable-targets=all on ppc-linux and ppc-vxworks.
Ok?

Paul

2005-06-29  Paul Brook  <paul@codesourcery.com>

	* bfd-in.h (_bfd_elf_provide_symbol): Update prototype.
	* bfd-in2.h: Regenerate.
	* elf32-ppc.c (ppc_elf_set_sdata_syms): Make sdata symbols section
	relative.
	* elflink.c (bfd_elf_set_symbol): Add section argument.
	(_bfd_elf_provide_symbol): Ditto.
	(_bfd_elf_provide_section_bound_symbols): Pass NULL section argument.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.sda_rel
Type: text/x-diff
Size: 4951 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20050629/51a88953/attachment.bin>


More information about the Binutils mailing list