diff options
| author | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-29 01:21:16 +0100 |
|---|---|---|
| committer | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-29 01:23:25 +0100 |
| commit | 6c58ed406a1dfa724bff457530870ad14cb012b5 (patch) | |
| tree | 76b6b270f922429252e2196cf4e2b7360a32a25b /binutils_patches/0008-Add-STM8-reloc-ops-by-default.patch | |
| parent | 394922bfd2c9182f3268bff664d4c46a1a6590f7 (diff) | |
| download | stm8-binutils-gdb-6c58ed406a1dfa724bff457530870ad14cb012b5.tar.gz | |
New patches for --gc-sections and hi8/lo8/hh8 support
Diffstat (limited to 'binutils_patches/0008-Add-STM8-reloc-ops-by-default.patch')
| -rw-r--r-- | binutils_patches/0008-Add-STM8-reloc-ops-by-default.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/binutils_patches/0008-Add-STM8-reloc-ops-by-default.patch b/binutils_patches/0008-Add-STM8-reloc-ops-by-default.patch new file mode 100644 index 0000000..547d674 --- /dev/null +++ b/binutils_patches/0008-Add-STM8-reloc-ops-by-default.patch @@ -0,0 +1,29 @@ +From 1c7438a0330f4187e122e97b4592f9187cf49bcd Mon Sep 17 00:00:00 2001 +From: Xavier ASUS <xavi92psx@gmail.com> +Date: Tue, 29 Oct 2019 01:15:40 +0100 +Subject: [PATCH 8/8] Add STM8 reloc ops by default + +--- + bfd/bfd-in2.h | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h +index 78221ddc..e602ff2d 100644 +--- a/bfd/bfd-in2.h ++++ b/bfd/bfd-in2.h +@@ -6517,6 +6517,13 @@ assembler and not (currently) written to any object files. */ + + /* STM8 bit field immediate for BTJx, BCPL, BSET, BRES instruction. */ + BFD_RELOC_STM8_BIT_FLD, ++/* STM8 extract LSB from word. */ ++ BFD_RELOC_STM8_LO8, ++/* STM8 extract MSB from word. */ ++ BFD_RELOC_STM8_HI8, ++/* STM8 extract MMSB from 24-bit address. */ ++ BFD_RELOC_STM8_HH8, ++ + BFD_RELOC_UNUSED }; + + typedef enum bfd_reloc_code_real bfd_reloc_code_real_type; +-- +2.17.1 |
