bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/18695] [x86-64] Missing relocation overflow check


From: cvs-commit at gcc dot gnu.org
Subject: [Bug gold/18695] [x86-64] Missing relocation overflow check
Date: Fri, 05 Feb 2016 16:29:02 +0000

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

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

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

commit 44803b5d876fcbbc1c6d9919a1b763679d5c035f
Author: Cary Coutant <address@hidden>
Date:   Fri Feb 5 08:27:13 2016 -0800

    Overhaul relocation framework to support overflow checking.

    gold/
        PR gold/18695
        * reloc.h (Relocate_functions::Address): New typedef.
        (Relocate_functions::Addendtype): New typedef.
        (Relocate_functions::Overflow_check): New enum type.
        (Relocate_functions::Reloc_status): New enum type.
        (Relocate_functions::check_overflow): New function template.
        (Relocate_functions::rel): Add check parameter; check for overflow.
        (Relocate_functions::rel_unaligned): Likewise.
        (Relocate_functions::rela): Likewise.
        (Relocate_functions::pcrel): Likewise.
        (Relocate_functions::pcrel_unaligned): Likewise.
        (Relocate_functions::pcrela): Likewise.
        (Relocate_functions::rel8): Adjust parameter types.
        (Relocate_functions::rela8): Likewise.
        (Relocate_functions::pcrel8): Likewise.
        (Relocate_functions::pcrela8): Likewise.
        (Relocate_functions::rel16): Likewise.
        (Relocate_functions::rela168): Likewise.
        (Relocate_functions::pcrel16): Likewise.
        (Relocate_functions::pcrela16): Likewise.
        (Relocate_functions::rel32): Likewise.
        (Relocate_functions::rel32_unaligned): Likewise.
        (Relocate_functions::rela32): Likewise.
        (Relocate_functions::pcrel32): Likewise.
        (Relocate_functions::pcrel32_unaligned): Likewise.
        (Relocate_functions::pcrela32): Likewise.
        (Relocate_functions::rel8_check): New function.
        (Relocate_functions::rela8_check): New function.
        (Relocate_functions::pcrel8_check): New function.
        (Relocate_functions::pcrela8_check): New function.
        (Relocate_functions::rel16_check): New function.
        (Relocate_functions::rela168_check): New function.
        (Relocate_functions::pcrel16_check): New function.
        (Relocate_functions::pcrela16_check): New function.
        (Relocate_functions::rel32_check): New function.
        (Relocate_functions::rel32_unaligned_check): New function.
        (Relocate_functions::rela32_check): New function.
        (Relocate_functions::pcrel32_check): New function.
        (Relocate_functions::pcrel32_unaligned_check): New function.
        (Relocate_functions::pcrela32_check): New function.
        (Bits::has_unsigned_overflow32): New function.
        (Bits::has_unsigned_overflow): New function.
        * testsuite/Makefile.am (overflow_unittest): New test.
        * testsuite/Makefile.in: Regenerate.
        * testsuite/overflow_unittest.cc: New source file.

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