VirtualBox

Changeset 75140 in vbox


Ignore:
Timestamp:
Oct 29, 2018 11:23:06 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126218
Message:

iprt/symvers.h, Config.kmk: build binary-compatible Additions on glibc 2.18.
bugref:9112: Linux Additions: fix building binaries for older Linux user space
Prevent linking against fcntl64 symbol, and do not include symvers.h with
XFree86 modules, which should not use glibc anyway.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r75116 r75140  
    69636963 TEMPLATE_VBOXGUESTR3XF86MOD_LDFLAGS.amd64   = -m elf_x86_64
    69646964endif
    6965 TEMPLATE_VBOXGUESTR3XF86MOD_CFLAGS  = $(TEMPLATE_VBOXGUESTR3EXE_CFLAGS) -fno-pie -fno-merge-constants -std=c99 -ffreestanding
    6966 TEMPLATE_VBOXGUESTR3XF86MOD_CXXFLAGS= $(TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS) -fno-pie -fno-merge-constants -ffreestanding
     6965TEMPLATE_VBOXGUESTR3XF86MOD_CFLAGS  = $(VBOX_GCC_fno-stack-protector) -fno-pie -fno-merge-constants -std=c99 -ffreestanding
     6966TEMPLATE_VBOXGUESTR3XF86MOD_CXXFLAGS= $(VBOX_GCC_fno-stack-protector) -fno-pie -fno-merge-constants -ffreestanding
    69676967TEMPLATE_VBOXGUESTR3XF86MOD_SYSSUFF = .o
    69686968TEMPLATE_VBOXGUESTR3XF86MOD_LIBS  = \
  • trunk/include/iprt/linux/symvers.h

    r75013 r75140  
    6060#undef __GLIBC_MINOR__
    6161#define __GLIBC_MINOR__ 3
     62
     63/* Do not use fcntl64 */
     64#include <fcntl.h>
     65#ifdef fnctl
     66# undef fcntl
     67#endif
     68#if defined(RT_ARCH_AMD64)
     69__asm__(".symver fcntl64,fcntl@GLIBC_2.2.5");
     70#else
     71__asm__(".symver fcntl64,fcntl@GLIBC_2.0");
     72#endif
     73
    6274#endif /* ___iprt_linux_symvers_h */
Note: See TracChangeset for help on using the changeset viewer.

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