From: Alan Modra Date: Tue, 8 Sep 2020 23:08:48 +0000 (+0930) Subject: Re: MSP430: Support relocations for subtract expressions in .uleb128 directives X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47485a31614a79f58a9cbd00e775bec8e201c471;p=binutils-gdb.git 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 --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 + + * libbfd-in.h (_bfd_write_unsigned_leb128): Declare. + * libbfd.h: Regenerate. + 2020-09-08 Jozef Lawrynowicz - Kuan-Lin Chen + Kuan-Lin Chen * 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)