diff options
author | Ken Raeburn <raeburn@cygnus> | 1993-08-06 16:10:40 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1993-08-06 16:10:40 +0000 |
commit | 924211221397ad3f92e378ea2cee3a03194d0994 (patch) | |
tree | d0a136c1ac2acc28c9bd42eeff9024369293423b /gas/config/tc-sparc.c | |
parent | 11a0aaa785fe33713bfd97c5b5a8dfa0716384b8 (diff) | |
download | gdb-924211221397ad3f92e378ea2cee3a03194d0994.zip gdb-924211221397ad3f92e378ea2cee3a03194d0994.tar.gz gdb-924211221397ad3f92e378ea2cee3a03194d0994.tar.bz2 |
(md_apply_fix): Fill in values for BFD_RELOC_{32,64}, not zeros.
(md_pseudo_table): Handle .uaxword.
Diffstat (limited to 'gas/config/tc-sparc.c')
-rw-r--r-- | gas/config/tc-sparc.c | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c index 33f9333..eb983db 100644 --- a/gas/config/tc-sparc.c +++ b/gas/config/tc-sparc.c @@ -89,6 +89,9 @@ const pseudo_typeS md_pseudo_table[] = /* start-sanitize-v9 */ #ifndef NO_V9 {"xword", s_xword, 0}, +#ifdef OBJ_ELF + {"uaxword", cons, 8}, +#endif #endif /* end-sanitize-v9 */ #ifdef OBJ_ELF @@ -1956,10 +1959,10 @@ md_apply_fix (fixP, value) { case BFD_RELOC_32: - buf[0] = 0; /* val >> 24; */ - buf[1] = 0; /* val >> 16; */ - buf[2] = 0; /* val >> 8; */ - buf[3] = 0; /* val; */ + buf[0] = val >> 24; + buf[1] = val >> 16; + buf[2] = val >> 8; + buf[3] = val; break; case BFD_RELOC_32_PCREL_S2: @@ -1973,14 +1976,14 @@ md_apply_fix (fixP, value) /* start-sanitize-v9 */ #ifndef NO_V9 case BFD_RELOC_64: - buf[0] = 0; - buf[1] = 0; - buf[2] = 0; - buf[3] = 0; - buf[4] = 0; - buf[5] = 0; - buf[6] = 0; - buf[7] = 0; + buf[0] = val >> 56; + buf[1] = val >> 48; + buf[2] = val >> 40; + buf[3] = val >> 32; + buf[4] = val >> 24; + buf[5] = val >> 16; + buf[6] = val >> 8; + buf[7] = val; break; case BFD_RELOC_SPARC_11: |