aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1994-02-07 10:11:43 +0000
committerKen Raeburn <raeburn@cygnus>1994-02-07 10:11:43 +0000
commit4a6e1a39e762546353d6494b394721bf11da2f6d (patch)
tree5908c398df216d15a2cb5151a78903510865aae4 /gas
parentfc6b54fdf5b4664a14dbd837bccec699acb1641e (diff)
downloadgdb-4a6e1a39e762546353d6494b394721bf11da2f6d.zip
gdb-4a6e1a39e762546353d6494b394721bf11da2f6d.tar.gz
gdb-4a6e1a39e762546353d6494b394721bf11da2f6d.tar.bz2
* 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.
Diffstat (limited to 'gas')
-rw-r--r--gas/config/tc-alpha.c10
1 files 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;