VirtualBox

Changeset 72122 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 4, 2018 7:37:24 PM (7 years ago)
Author:
vboxsync
Message:

Additions/Linux: under some circumstances chk_stubs.c can get built by C++.
bugref:9112: Linux Additions: fix building binaries for older Linux user space
chk_stubs.c is build during linker invocation to work around the build
system library order. Normally it is built as a C file, but apparently with
the right build flags it can be built as C++, so in that case make sure that
wrap_memcpy() is extern C.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/chk_stubs.c

    r70936 r72122  
    4949 * version.  We are forced to do it this way because the shared libraries
    5050 * supc++ and gcc_eh contain references which we cannot change. */
     51
     52#ifdef __cplusplus
     53extern "C" void *__wrap_memcpy(void *dest, const void *src, size_t n);
     54#endif
     55
    5156asm (".symver memcpy, memcpy@GLIBC_2.2.5");
    5257void *__wrap_memcpy(void *dest, const void *src, size_t n)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette