[lld] fe70b17 - [ELF][test] --gc-sections: test SHT_FINI_ARRAY is retained
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 5 00:03:47 PDT 2022
Author: Fangrui Song
Date: 2022-09-05T00:03:40-07:00
New Revision: fe70b17fcff043dee11f63a85941d3d927f59deb
URL: https://github.com/llvm/llvm-project/commit/fe70b17fcff043dee11f63a85941d3d927f59deb
DIFF: https://github.com/llvm/llvm-project/commit/fe70b17fcff043dee11f63a85941d3d927f59deb.diff
LOG: [ELF][test] --gc-sections: test SHT_FINI_ARRAY is retained
Added:
Modified:
lld/test/ELF/gc-sections.s
Removed:
################################################################################
diff --git a/lld/test/ELF/gc-sections.s b/lld/test/ELF/gc-sections.s
index 2094a54dc2bf..94adc8210b4b 100644
--- a/lld/test/ELF/gc-sections.s
+++ b/lld/test/ELF/gc-sections.s
@@ -17,6 +17,7 @@
# NOGC: Name: .tbss
# NOGC: Name: .ctors
# NOGC: Name: .dtors
+# NOGC: Name: .fini_array
# NOGC: Name: .init_array
# NOGC: Name: .preinit_array
# NOGC: Name: .jcr
@@ -51,6 +52,7 @@
# GC1: Name: .tbss
# GC1: Name: .ctors
# GC1: Name: .dtors
+# GC1: Name: .fini_array
# GC1: Name: .init_array
# GC1: Name: .preinit_array
# GC1: Name: .jcr
@@ -75,6 +77,7 @@
# GC2: Name: .tbss
# GC2: Name: .ctors
# GC2: Name: .dtors
+# GC2: Name: .fini_array
# GC2: Name: .init_array
# GC2: Name: .preinit_array
# GC2: Name: .jcr
@@ -153,6 +156,9 @@ h:
.section .fini,"ax"
.quad 0
+.section .fini_array,"aw", at fini_array
+ .quad 0
+
# https://golang.org/cl/373734
.section .init_array,"aw", at progbits
.quad 0
More information about the llvm-commits
mailing list