summaryrefslogtreecommitdiff
path: root/BaseTools/Bin
diff options
context:
space:
mode:
authorOliver Smith-Denny <osde@linux.microsoft.com>2024-07-22 15:45:48 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-07-23 15:07:41 +0000
commit990bc4e562772521d771f3d0fe3e3d107ba3752f (patch)
tree0c40567e26c13fb04fd0f8ab90d4368bfc65eb01 /BaseTools/Bin
parentf96298d75cebfe2a7707157ed644eb86bf6d46ca (diff)
downloadedk2-990bc4e562772521d771f3d0fe3e3d107ba3752f.zip
edk2-990bc4e562772521d771f3d0fe3e3d107ba3752f.tar.gz
edk2-990bc4e562772521d771f3d0fe3e3d107ba3752f.tar.bz2
BaseTools: Move GccLto Files to BaseTools
This moves the GccLto files from ArmPkg to BaseTools as they are files that are only used in the build. This removes an artificial dependency on ArmPkg from BaseTools and keeps build related files in BaseTools. Signed-off-by: Oliver Smith-Denny <osde@linux.microsoft.com>
Diffstat (limited to 'BaseTools/Bin')
-rw-r--r--BaseTools/Bin/GccLto/liblto-aarch64.abin0 -> 1128 bytes
-rw-r--r--BaseTools/Bin/GccLto/liblto-aarch64.s21
-rw-r--r--BaseTools/Bin/GccLto/liblto-arm.abin0 -> 2096 bytes
-rw-r--r--BaseTools/Bin/GccLto/liblto-arm.s55
4 files changed, 76 insertions, 0 deletions
diff --git a/BaseTools/Bin/GccLto/liblto-aarch64.a b/BaseTools/Bin/GccLto/liblto-aarch64.a
new file mode 100644
index 0000000..6ca3932
--- /dev/null
+++ b/BaseTools/Bin/GccLto/liblto-aarch64.a
Binary files differ
diff --git a/BaseTools/Bin/GccLto/liblto-aarch64.s b/BaseTools/Bin/GccLto/liblto-aarch64.s
new file mode 100644
index 0000000..02a55ef
--- /dev/null
+++ b/BaseTools/Bin/GccLto/liblto-aarch64.s
@@ -0,0 +1,21 @@
+//
+// Copyright (c) 2016, Linaro Ltd. All rights reserved.<BR>
+//
+// SPDX-License-Identifier: BSD-2-Clause-Patent
+//
+
+//
+// GCC in LTO mode interoperates poorly with non-standard libraries that
+// provide implementations of compiler intrinsics such as memcpy/memset
+// or the stack protector entry points.
+//
+// By referencing these functions from a non-LTO object that can be passed
+// to the linker via the -plugin-opt=-pass-through=-lxxx options, the
+// intrinsics are included in the link in a way that allows them to be
+// pruned again if no other references to them exist.
+//
+
+ .long memcpy - .
+ .long memset - .
+ .long __stack_chk_fail - .
+ .long __stack_chk_guard - .
diff --git a/BaseTools/Bin/GccLto/liblto-arm.a b/BaseTools/Bin/GccLto/liblto-arm.a
new file mode 100644
index 0000000..d811c09
--- /dev/null
+++ b/BaseTools/Bin/GccLto/liblto-arm.a
Binary files differ
diff --git a/BaseTools/Bin/GccLto/liblto-arm.s b/BaseTools/Bin/GccLto/liblto-arm.s
new file mode 100644
index 0000000..f19fb45
--- /dev/null
+++ b/BaseTools/Bin/GccLto/liblto-arm.s
@@ -0,0 +1,55 @@
+//
+// Copyright (c) 2016, Linaro Ltd. All rights reserved.<BR>
+//
+// SPDX-License-Identifier: BSD-2-Clause-Patent
+//
+
+//
+// GCC in LTO mode interoperates poorly with non-standard libraries that
+// provide implementations of compiler intrinsics such as memcpy/memset
+// or the stack protector entry points.
+//
+// By referencing these functions from a non-LTO object that can be passed
+// to the linker via the -plugin-opt=-pass-through=-lxxx options, the
+// intrinsics are included in the link in a way that allows them to be
+// pruned again if no other references to them exist.
+//
+
+ .long memcpy - .
+ .long memset - .
+ .long __stack_chk_fail - .
+ .long __stack_chk_guard - .
+ .long __ashrdi3 - .
+ .long __ashldi3 - .
+ .long __aeabi_idiv - .
+ .long __aeabi_idivmod - .
+ .long __aeabi_uidiv - .
+ .long __aeabi_uidivmod - .
+ .long __divdi3 - .
+ .long __divsi3 - .
+ .long __lshrdi3 - .
+ .long __aeabi_memcpy - .
+ .long __aeabi_memset - .
+ .long memmove - .
+ .long __modsi3 - .
+ .long __moddi3 - .
+ .long __muldi3 - .
+ .long __aeabi_lmul - .
+ .long __ARM_ll_mullu - .
+ .long __udivsi3 - .
+ .long __umodsi3 - .
+ .long __udivdi3 - .
+ .long __umoddi3 - .
+ .long __udivmoddi4 - .
+ .long __clzsi2 - .
+ .long __ctzsi2 - .
+ .long __ucmpdi2 - .
+ .long __switch8 - .
+ .long __switchu8 - .
+ .long __switch16 - .
+ .long __switch32 - .
+ .long __aeabi_ulcmp - .
+ .long __aeabi_uldivmod - .
+ .long __aeabi_ldivmod - .
+ .long __aeabi_llsr - .
+ .long __aeabi_llsl - .