Ignore:
Timestamp:
Jan 20, 2022, 10:18:39 AM (4 years ago)
Author:
[email protected]
Message:

[JSC] Add section directive in MacroAssemblerX86Common asm blocks
https://bugs.webkit.org/show_bug.cgi?id=235406

Patch by Joseph Griego <[email protected]> on 2022-01-20
Reviewed by Yusuke Suzuki.

These asm blocks aren't in a function body so they need a .text
directive to prevent them from being included in some arbitrary section
(say, an inline function's section) by happenstance, which was happening
in the WPE build without UnifiedSources.

  • assembler/MacroAssemblerX86Common.cpp:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/assembler/MacroAssemblerX86Common.cpp

    r281910 r288305  
    177177#if COMPILER(GCC_COMPATIBLE)
    178178asm (
     179    ".text" "\n"
    179180    ".globl " SYMBOL_STRING(ctiMasmProbeTrampoline) "\n"
    180181    HIDE_SYMBOL(ctiMasmProbeTrampoline) "\n"
     
    517518#if COMPILER(GCC_COMPATIBLE)
    518519asm (
     520    ".text" "\n"
    519521    ".globl " SYMBOL_STRING(ctiMasmProbeTrampoline) "\n"
    520522    HIDE_SYMBOL(ctiMasmProbeTrampoline) "\n"
Note: See TracChangeset for help on using the changeset viewer.