From 1db77c8ec957684c09a03910ac18681a75c07554 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Tue, 15 Aug 2000 16:04:37 +0000 Subject: [PATCH] * config/tc-sh.c (md_apply_fix) [BFD_RELOC_32, BFD_RELOC_16]: Use md_number_to_chars. --- gas/ChangeLog | 5 +++++ gas/config/tc-sh.c | 26 ++------------------------ 2 files changed, 7 insertions(+), 24 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index f76f4825e09..7b0a37eac2f 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2000-08-15 Alexandre Oliva + + * config/tc-sh.c (md_apply_fix) [BFD_RELOC_32, BFD_RELOC_16]: Use + md_number_to_chars. + 2000-08-14 Nick Clifton * config/tc-arm.c (do_bx): Allow "bx pc". diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c index c120d0cf695..359b2bec6bb 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: -- 2.30.2