VirtualBox

Ignore:
Timestamp:
Sep 3, 2022 2:54:22 AM (2 years ago)
Author:
vboxsync
Message:

IPRT/nocrt: Split the as much read-only data out of the .rdata segment and put it in a .rodata section when there's a posibility that we're targeting NT 3.x, as these older NT versions cannot deal with a read-only import table. The linker insists on putting the import table in the .rdata section. There are a couple of other structures it generates/manages that goes there too that and seems impossible to move out of it. bugref:10261

File:
1 edited

Legend:

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

    r96407 r96589  
    6565
    6666/* Tell the linker to merge the .CRT* sections into .rdata */
    67 #pragma comment(linker, "/merge:.CRT=.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
    6872/** @} */
    6973
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