Changeset 226268 in webkit


Ignore:
Timestamp:
Dec 22, 2017 10:12:53 AM (6 years ago)
Author:
Michael Catanzaro
Message:

[GTK] Duplicated symbols in libjavascriptcoregtk and libwebkit2gtk can cause crashes in production builds
https://bugs.webkit.org/show_bug.cgi?id=179914
<rdar://problem/36196039>

Unreviewed.

Source/JavaScriptCore:

  • PlatformGTK.cmake:

Source/WebKit:

I messed up a last-minute change, and inverted the conditional that determines whether to
use the version script. I did test this change to ensure that it worked properly by checking
that the library size was correct, but only in non-developer mode. My test was thwarted by
-fvisibility=hidden. It looks like so few internal symbols are exported that missing the
version script had little impact on the size of the resulting libraries. That's good, I
suppose.

  • PlatformGTK.cmake:
  • PlatformWPE.cmake:
Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r226266 r226268  
     12017-12-22  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        [GTK] Duplicated symbols in libjavascriptcoregtk and libwebkit2gtk can cause crashes in production builds
     4        https://bugs.webkit.org/show_bug.cgi?id=179914
     5        <rdar://problem/36196039>
     6
     7        Unreviewed.
     8
     9        * PlatformGTK.cmake:
     10
    1112017-12-22  Michael Catanzaro  <mcatanzaro@igalia.com>
    212
  • trunk/Source/JavaScriptCore/PlatformGTK.cmake

    r226266 r226268  
    6666set_target_properties(JavaScriptCoreGTK PROPERTIES VERSION ${JAVASCRIPTCORE_VERSION} SOVERSION ${JAVASCRIPTCORE_VERSION_MAJOR})
    6767
    68 if (DEVELOPER_MODE)
     68if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
    6969    WEBKIT_ADD_TARGET_PROPERTIES(JavaScriptCoreGTK LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/javascriptcoregtk-symbols.map")
    7070endif ()
  • trunk/Source/WebKit/ChangeLog

    r226266 r226268  
     12017-12-22  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        [GTK] Duplicated symbols in libjavascriptcoregtk and libwebkit2gtk can cause crashes in production builds
     4        https://bugs.webkit.org/show_bug.cgi?id=179914
     5        <rdar://problem/36196039>
     6
     7        Unreviewed.
     8
     9        I messed up a last-minute change, and inverted the conditional that determines whether to
     10        use the version script. I did test this change to ensure that it worked properly by checking
     11        that the library size was correct, but only in non-developer mode. My test was thwarted by
     12        -fvisibility=hidden. It looks like so few internal symbols are exported that missing the
     13        version script had little impact on the size of the resulting libraries. That's good, I
     14        suppose.
     15
     16        * PlatformGTK.cmake:
     17        * PlatformWPE.cmake:
     18
    1192017-12-22  Michael Catanzaro  <mcatanzaro@igalia.com>
    220
  • trunk/Source/WebKit/PlatformGTK.cmake

    r226266 r226268  
    2525add_definitions(-DDATADIR="${CMAKE_INSTALL_FULL_DATADIR}")
    2626
    27 if (DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
     27if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
    2828    WEBKIT_ADD_TARGET_PROPERTIES(WebKit LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/webkitglib-symbols.map")
    2929endif ()
  • trunk/Source/WebKit/PlatformWPE.cmake

    r226266 r226268  
    1717add_definitions(-DLOCALEDIR="${CMAKE_INSTALL_FULL_LOCALEDIR}")
    1818
    19 if (DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
     19if (NOT DEVELOPER_MODE AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
    2020    WEBKIT_ADD_TARGET_PROPERTIES(WebKit LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/webkitglib-symbols.map")
    2121endif ()
Note: See TracChangeset for help on using the changeset viewer.