aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorGunther Nikl <gnikl@justmail.de>2020-04-08 11:11:43 +0100
committerNick Clifton <nickc@redhat.com>2020-04-08 11:13:04 +0100
commit6a3ab9239ae6184c8a3558ce9628f6d12a7f1bbd (patch)
treed12165658001386ef2fc6cbb2c6636f906b12919 /gas
parent14ca8ecfcb8628485f734af4b548933124990436 (diff)
downloadfsf-binutils-gdb-6a3ab9239ae6184c8a3558ce9628f6d12a7f1bbd.zip
fsf-binutils-gdb-6a3ab9239ae6184c8a3558ce9628f6d12a7f1bbd.tar.gz
fsf-binutils-gdb-6a3ab9239ae6184c8a3558ce9628f6d12a7f1bbd.tar.bz2
[PATCH 2/4]: moxie: use generic pcrel support
The moxie target header uses md_pcrel_from, thus the local prototype and the macro definition for MD_PCREL_FROM_SECTION are not needed. * config/tc-moxie.h (MD_PCREL_FROM_SECTION): Delete define. (md_pcrel_from): Remove prototytpe.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-moxie.h8
2 files changed, 5 insertions, 8 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 9fd8a9e..9668c78 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2020-04-08 Gunther Nikl <gnikl@justmail.de>
+
+ * config/tc-moxie.h (MD_PCREL_FROM_SECTION): Delete define.
+ (md_pcrel_from): Remove prototytpe.
+
2020-04-07 H.J. Lu <hongjiu.lu@intel.com>
* NEWS: Mention support for Intel SERIALIZE and TSXLDTRK
diff --git a/gas/config/tc-moxie.h b/gas/config/tc-moxie.h
index 80f7f6c..a66b60a 100644
--- a/gas/config/tc-moxie.h
+++ b/gas/config/tc-moxie.h
@@ -36,12 +36,4 @@
#define md_estimate_size_before_relax(A, B) (as_fatal (_("estimate size\n")), 0)
#define md_convert_frag(B, S, F) as_fatal (_("convert_frag\n"))
-/* If you define this macro, it should return the offset between the
- address of a PC relative fixup and the position from which the PC
- relative adjustment should be made. On many processors, the base
- of a PC relative instruction is the next instruction, so this
- macro would return the length of an instruction. */
-#define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from (FIX)
-extern long md_pcrel_from (struct fix *);
-
#define md_section_align(SEGMENT, SIZE) (SIZE)