aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2000-08-15 16:04:37 +0000
committerAlexandre Oliva <aoliva@redhat.com>2000-08-15 16:04:37 +0000
commit1db77c8ec957684c09a03910ac18681a75c07554 (patch)
tree1c51110a8c89080208639b4216c4f90de8da9a27 /gas/config
parent88f9c2a0b0dabfe689980e524016b8c7d0c6c960 (diff)
downloadgdb-1db77c8ec957684c09a03910ac18681a75c07554.zip
gdb-1db77c8ec957684c09a03910ac18681a75c07554.tar.gz
gdb-1db77c8ec957684c09a03910ac18681a75c07554.tar.bz2
* config/tc-sh.c (md_apply_fix) [BFD_RELOC_32, BFD_RELOC_16]: Use
md_number_to_chars.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-sh.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c
index c120d0c..359b2be 100644
--- a/gas/config/tc-sh.c
+++ b/gas/config/tc-sh.c
@@ -2681,33 +2681,11 @@ md_apply_fix (fixP, val)
break;
case BFD_RELOC_32:
- if (!target_big_endian)
- {
- *buf++ = val >> 0;
- *buf++ = val >> 8;
- *buf++ = val >> 16;
- *buf++ = val >> 24;
- }
- else
- {
- *buf++ = val >> 24;
- *buf++ = val >> 16;
- *buf++ = val >> 8;
- *buf++ = val >> 0;
- }
+ md_number_to_chars (buf, val, 4);
break;
case BFD_RELOC_16:
- if (! target_big_endian)
- {
- *buf++ = val >> 0;
- *buf++ = val >> 8;
- }
- else
- {
- *buf++ = val >> 8;
- *buf++ = val >> 0;
- }
+ md_number_to_chars (buf, val, 2);
break;
case BFD_RELOC_SH_USES: