bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/25861] xtensa ld error: (.debug_line+0x3b12): dangerous relocati


From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/25861] xtensa ld error: (.debug_line+0x3b12): dangerous relocation: overflow after relaxation
Date: Thu, 30 Apr 2020 01:35:02 +0000

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

--- Comment #7 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Max Filippov <address@hidden>:

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

commit d548f47df4d2e3d117d504a4c9977982c78a0556
Author: Max Filippov <address@hidden>
Date:   Sat Apr 25 00:40:25 2020 -0700

    xtensa: fix XTENSA_NDIFF handling for PR ld/25861

    Fields marked with XTENSA_NDIFF relocations are not negated, they only
    have sign bits removed. Don't negate their values when relaxation is
    performed. Don't add sign bits when the value is zero. Report overflow
    when the result has negative sign but all significant bits are zero.

    2020-04-29  Max Filippov  <address@hidden>
    bfd/
            * elf32-xtensa.c (relax_section): Don't negate diff_value for
            XTENSA_NDIFF relocations. Don't add sign bits whe diff_value
            equals 0. Report overflow when the result has negative sign but
            all significant bits are zero.

    ld/
            * testsuite/ld-xtensa/relax-diff1.d: New test definition.
            * testsuite/ld-xtensa/relax-diff1.s: New test source.
            * testsuite/ld-xtensa/relax-ndiff.d: New test definition.
            * testsuite/ld-xtensa/relax-ndiff.s: New test source.
            * testsuite/ld-xtensa/xtensa.exp: (relax-diff1)
            (relax-ndiff): New tests.

-- 
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]