• Show log

    Commit

  • Hash : 787d8d24
    Author : Sergei Trofimovich
    Date : 2018-05-19T17:31:42

    __warn_references: tweak assembly for "gnu.warning" section
    
    On some targets ';' (like hppa) is treated as a comment
    in assembly files. This occasionally causes the following
    assembly failures:
    
    ```
    Error: can't resolve `.gnu.warning.EVP_DecryptFinal'
    {.gnu.warning.EVP_DecryptFinal section} - `.Ltext0' {.text section}
    ```
    
    Note how branch (or other reference) attempts to cross the
    boundary across two section types: '.text' and '.gnu.warning'.
    
    Tobias Ulmer notes that openbsd already uses newlines
    for similar macro:
    
    https://github.com/openbsd/src/blob/master/sys/arch/hppa/include/cdefs.h
    
    This change switches from ';' to newline as well.
    Tested on hppa2.0 and x86_64.
    
    Reported-by: Jeroen Roovers
    Bug: https://bugs.gentoo.org/656104
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>