VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf@ 108794

Last change on this file since 108794 was 108794, checked in by vboxsync, 2 weeks ago

Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1## @file
2# Null library instance for StackCheckLib which can be included
3# when a build needs to include stack check functions but does
4# not want to generate stack check failures.
5#
6# Copyright (c) Microsoft Corporation.
7# SPDX-License-Identifier: BSD-2-Clause-Patent
8##
9
10[Defines]
11 INF_VERSION = 1.29
12 BASE_NAME = StackCheckLibNull
13 FILE_GUID = f6ef2763-ca3b-4c6f-a931-2a48de3ce352
14 MODULE_TYPE = BASE
15 VERSION_STRING = 1.0
16 LIBRARY_CLASS = StackCheckLib
17
18[Sources]
19 StackCheckLibNullGcc.c | GCC
20 StackCheckLibNullMsvc.c | MSFT
21
22[Sources.IA32]
23 IA32/StackCheckFunctionsMsvc.nasm | MSFT
24
25[Sources.X64]
26 X64/StackCheckFunctionsMsvc.nasm | MSFT
27
28[Packages]
29 MdePkg/MdePkg.dec
30
31[BuildOptions]
32 # We cannot build the MSVC version with /GL (whole program optimization) because we run into linker error
33 # LNK1237, which is a failure to link against a symbol from a library compiled with /GL. The whole program
34 # optimization tries to do away with references to this symbol. The solution is to not compile the stack
35 # check libs with /GL
36 MSFT:*_*_*_CC_FLAGS = /GL-
37
38 # We cannot build the GCC version with LTO (link time optimization) because we run into linker errors where
39 # the stack cookie variable has been optimized away, as it looks to GCC like the variable is not used, because
40 # the compiler inserts the usage.
41 GCC:*_*_*_CC_FLAGS = -fno-lto
Note: See TracBrowser for help on using the repository browser.

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