Patch: bfd/som.c warnings reduction

Rodney Brown rdb@localhost
Thu Feb 17 04:39:00 GMT 2000


This eliminates a number of the 'missing initializer' warnings in bfd/som.c
building gdb. The sed script is a workaround for my lack of Copyright
assignment - run it over bfd/som.c .

2000-02-17  RodneyBrown@pmsc.com
	* bfd/som.c SOM_HOWTO to remove missing initializer warnings

--- bfd/som.c.orig	Sat Dec 11 05:51:35 1999
+++ bfd/som.c	Thu Feb 17 23:15:05 2000
@@ -783,6 +783,9 @@
 #define R_COMMENT 0xdd
 #endif
 
+#define SOM_HOWTO(TYPE, NAME)	\
+  HOWTO(TYPE, 0, 0, 32, false, 0, 0, hppa_som_reloc, NAME, false, 0, 0, false)
+
 static reloc_howto_type som_hppa_howto_table[] =
 {
   {R_NO_RELOCATION, 0, 0, 32, false, 0, 0, hppa_som_reloc, "R_NO_RELOCATION"},
--- /dev/null	Thu Feb 17 23:16:24 2000
+++ bfd/somhowto.sed	Thu Feb 17 23:08:12 2000
@@ -0,0 +1 @@
+/^  {\([^,]*\), 0, 0, 32, false, 0, 0, hppa_som_reloc, \("[^"]*"\)}/s//  SOM_HOWTO(\1, \2)/


More information about the Binutils mailing list