From 4a6e1a39e762546353d6494b394721bf11da2f6d Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 7 Feb 1994 10:11:43 +0000 Subject: [PATCH] * tc-alpha.c (md_section_align): Change second argument and return type to valueT, to agree with tc.h. (alpha_do_align): Local static array nop_pattern is now unsigned char, to avoid overflow warnings. * tc-alpha.h (md_section_align): Delete declaration. * obj-ecoff.c (ecoff_frob_file): Ensure that ecoff_data for output bfd is non-null before indirecting through it. Crock to get GP set right: * tc-alpha.c (alpha_frob_ecoff_data): Renamed from alpha_frob_file. * tc-alpha.h (tc_frob_file): Macro deleted. * obj-ecoff.c (ecoff_frob_file) [TC_ALPHA]: Call alpha_frob_ecoff_data, then fill in optional-header info with gp value and register masks. --- gas/config/tc-alpha.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c index 5c60e53..0ca87ca 100644 --- a/gas/config/tc-alpha.c +++ b/gas/config/tc-alpha.c @@ -652,10 +652,10 @@ alpha_fix_adjustable (f) return !alpha_force_relocation (f); } -unsigned long +valueT md_section_align (seg, size) segT seg; - unsigned long size; + valueT size; { #ifdef OBJ_ECOFF /* This should probably be handled within BFD, or by pulling the @@ -1711,7 +1711,7 @@ alpha_do_align (n, fill) || !strcmp (now_seg->name, ".init") || !strcmp (now_seg->name, ".fini"))) { - static const char nop_pattern[] = { 0x1f, 0x04, 0xff, 0x47 }; + static const unsigned char nop_pattern[] = { 0x1f, 0x04, 0xff, 0x47 }; frag_align_pattern (n, nop_pattern, sizeof (nop_pattern)); return 1; } @@ -1862,10 +1862,8 @@ md_apply_fix (fixP, valueP) } void -alpha_frob_file () +alpha_frob_ecoff_data () { - /* This bit only works because tc_frob_file gets called before - obj_frob_file does. Sigh. */ select_gp_value (); /* $zero and $f31 are read-only */ alpha_gprmask &= ~1; -- 2.7.4