Ticket #10402: 0006-runtime_loader-Add-__dso_handle.patch

File 0006-runtime_loader-Add-__dso_handle.patch, 830 bytes (added by js, 6 years ago)
  • src/system/runtime_loader/runtime_loader.cpp

    From 71a49ad8ebbf8233a4e8278cdfc9f8c8ed4224a5 Mon Sep 17 00:00:00 2001
    From: Jonathan Schleifer <js@webkeks.org>
    Date: Sun, 12 Jan 2014 17:04:18 +0100
    Subject: [PATCH 6/6] runtime_loader: Add __dso_handle.
    
    The symbol is needed for global objects. Usually, GCC also requires
    this, but for some reason, the linking error only occurs when using
    Clang.
    ---
     src/system/runtime_loader/runtime_loader.cpp | 1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/src/system/runtime_loader/runtime_loader.cpp b/src/system/runtime_loader/runtime_loader.cpp
    index e3dc21f..5467b2a 100644
    a b  
    2929
    3030struct user_space_program_args *gProgramArgs;
    3131void *__gCommPageAddress;
     32void *__dso_handle;
    3233
    3334
    3435static const char *