PATCH: bfd/som.c for R_COMMENT
RDBrown@mira.net
RDBrown@mira.net
Mon Apr 9 06:03:00 GMT 2001
This fixes the two strip test failures when testing with objects
built with the unbundled HP ANSI C compiler.
R_COMMENT and R_COMP3 have the same som_fixup_formats value, but as
far as I can see the subop value setup in the code below is unused
anyway else - so that that 'O' fixup_format case may be incomplete.
The GPL-ed som-linker up at < http://www.thepuffingroup.com > has code for
supporting R_COMP? and R_COMMENT in lieu of a SOM manual.
2001-04-09 Rodney Brown <RBrown64@csc.com.au>
* som.c (som_set_reloc_info): Support R_COMMENT for HP C.
--- bfd/som.c.orig Fri Jan 5 09:27:08 2001
+++ bfd/som.c Mon Apr 9 12:25:41 2001
@@ -4783,20 +4783,21 @@ som_set_reloc_info (fixup, end, internal
case 'O':
switch (op)
{
case R_COMP1:
subop = comp1_opcodes;
break;
case R_COMP2:
subop = comp2_opcodes;
break;
case R_COMP3:
+ case R_COMMENT:
subop = comp3_opcodes;
break;
default:
abort ();
}
while (*subop <= (unsigned char) c)
++subop;
--subop;
break;
/* The lower 32unwind bits must be persistent. */
More information about the Binutils
mailing list