bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/28176] rl78 complex reloc divide by zero


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/28176] rl78 complex reloc divide by zero
Date: Sat, 07 Aug 2021 09:11:25 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28176

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Alan Modra <amodra@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=983cdaecc134a5f9adefd052a97bc72321bf0ca3

commit 983cdaecc134a5f9adefd052a97bc72321bf0ca3
Author: Alan Modra <amodra@gmail.com>
Date:   Sat Aug 7 14:13:11 2021 +0930

    PR28176, rl78 complex reloc divide by zero

    This is a bit more than just preventing the divide by zero.  Most of
    the patch is tidying up error reporting, so that for example, linking
    an object file with a reloc stack underflow produces a linker error
    rather than just displaying a message that might be ignored.

            PR 28176
            * elf32-rl78.c (RL78_STACK_PUSH, RL78_STACK_POP): Delete.
            (rl78_stack_push, rl78_stack_pop): New inline functions.
            (rl78_compute_complex_reloc): Add status and error message params.
            Use new inline stack handling functions.  Report stack overflow
            or underflow, and divide by zero.
            (rl78_special_reloc): Return status and error message from
            rl78_compute_complex_reloc.
            (rl78_elf_relocate_section): Similarly.  Modernise reloc error
            reporting.  Delete unused bfd_reloc_other case.  Don't assume
            DIR24S_PCREL overflow is due to undefined function.
            (rl78_offset_for_reloc): Adjust to suit rl78_compute_complex_reloc.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]