[patch] fatal signal in ppc_elf_check_relocs (was: Re: Patch for ppc _SDA_BASE_ value)

Momchil Velikov velco@fadata.bg
Sat Apr 1 08:28:00 GMT 2000


Hi, 

The linker gets a fatal signal when reporing an error
in ppc_elf_check_relocs, because the howto table is not
initialized. It can be demonstrated this way:

$ cat > xx.c
int a;
int     
foo ()
{
  return a;
}

$ powerpc-svr4-gcc -c -msdata xx.c
$ powerpc-svr4-ld -shared -o xx xx.o
Segmentation fault
$

Regards,
-velco
2000-04-01  Momchil Velikov  <velco@fadata.bg>

	* elf32-ppc.c (ppc_elf_check_relocs): Initialize the howto
	table.



More information about the Binutils mailing list