VirtualBox

Changeset 96593 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 4, 2022 5:34:04 PM (2 years ago)
Author:
vboxsync
Message:

/Config.kmk,IPRT,ValKit/Config.kmk: Found an undocumented linker option for keeping the .idata stuff out of .rdata, so, dropping the .rodata tweaks and using this option instead. bugref:10261

Location:
trunk/src/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/compiler/vcc/initializers-c-cpp-vcc.cpp

    r96589 r96593  
    8181
    8282/* Tell the linker to merge the .CRT* sections into .rdata */
    83 #ifdef IPRT_VCC_USING_RODATA_AS_CONST_SEG
    84 # pragma comment(linker, "/merge:.CRT=.rodata ")
    85 #else
    86 # pragma comment(linker, "/merge:.CRT=.rdata ")
    87 #endif
     83#pragma comment(linker, "/merge:.CRT=.rdata ")
    8884/** @} */
    8985
  • trunk/src/VBox/Runtime/common/compiler/vcc/tlsdir-vcc.c

    r96589 r96593  
    6565
    6666/* Tell the linker to merge the .CRT* sections into .rdata */
    67 #ifdef IPRT_VCC_USING_RODATA_AS_CONST_SEG
    68 # pragma comment(linker, "/merge:.CRT=.rodata ")
    69 #else
    70 # pragma comment(linker, "/merge:.CRT=.rdata ")
    71 #endif
     67#pragma comment(linker, "/merge:.CRT=.rdata ")
    7268/** @} */
    7369
  • trunk/src/VBox/ValidationKit/Config.kmk

    r96509 r96593  
    115115        -Section:.bss,RW!K
    116116endif
     117TEMPLATE_VBoxValidationKitR3_LDFLAGS.win.x86 += -NoOptIData
    117118ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
    118119 TEMPLATE_VBoxValidationKitR3_POST_CMDS = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION) $(out)$$(NLTAB))$(TEMPLATE_VBOXVALIDATIONKITR3BASE_POST_CMDS)$$(NLTAB)
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