[binutils-gdb] Re: MSP430: Support relocations for subtract expressions in .uleb128 directives
Alan Modra
amodra@sourceware.org
Tue Sep 8 23:23:32 GMT 2020
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=47485a31614a79f58a9cbd00e775bec8e201c471
commit 47485a31614a79f58a9cbd00e775bec8e201c471
Author: Alan Modra <amodra@gmail.com>
Date: Wed Sep 9 08:38:48 2020 +0930
Re: MSP430: Support relocations for subtract expressions in .uleb128 directives
Put the prototype where it won't disappear on the next regen of libbfd.h.
* libbfd-in.h (_bfd_write_unsigned_leb128): Declare.
* libbfd.h: Regenerate.
Diff:
---
bfd/ChangeLog | 7 ++++++-
bfd/libbfd-in.h | 2 ++
bfd/libbfd.h | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 39dab961da6..180a894da97 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
+2020-09-09 Alan Modra <amodra@gmail.com>
+
+ * libbfd-in.h (_bfd_write_unsigned_leb128): Declare.
+ * libbfd.h: Regenerate.
+
2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
- Kuan-Lin Chen <kuanlinchentw@gmail.com>
+ Kuan-Lin Chen <kuanlinchentw@gmail.com>
* bfd-in2.h (bfd_reloc_code_real): Add
BFD_RELOC_MSP430_{SET,SUB}_ULEB128.
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h
index 5d24efbeb26..84dba221e1b 100644
--- a/bfd/libbfd-in.h
+++ b/bfd/libbfd-in.h
@@ -896,6 +896,8 @@ extern bfd_signed_vma _bfd_read_signed_leb128
extern bfd_vma _bfd_safe_read_leb128
(bfd *, bfd_byte *, unsigned int *, bfd_boolean, const bfd_byte * const)
ATTRIBUTE_HIDDEN;
+extern bfd_byte * _bfd_write_unsigned_leb128
+ (bfd_byte *, bfd_byte *, bfd_vma) ATTRIBUTE_HIDDEN;
#if GCC_VERSION >= 7000
#define _bfd_mul_overflow(a, b, res) __builtin_mul_overflow (a, b, res)
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index 7587e8f3c73..74d7e4111d3 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -902,7 +902,7 @@ extern bfd_vma _bfd_safe_read_leb128
(bfd *, bfd_byte *, unsigned int *, bfd_boolean, const bfd_byte * const)
ATTRIBUTE_HIDDEN;
extern bfd_byte * _bfd_write_unsigned_leb128
- (bfd_byte *p, bfd_byte *end, bfd_vma val) ATTRIBUTE_HIDDEN;
+ (bfd_byte *, bfd_byte *, bfd_vma) ATTRIBUTE_HIDDEN;
#if GCC_VERSION >= 7000
#define _bfd_mul_overflow(a, b, res) __builtin_mul_overflow (a, b, res)
More information about the Binutils-cvs
mailing list