[PATCH] D82484: [Hexagon] llvm-objcopy check for SHN_HEXAGON_SCOMMON_1
Sid Manning via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 24 17:57:42 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe5911de37722: [Hexagon][llvm-objcopy] Add missing check for SHN_HEXAGON_SCOMMON_1 (authored by sidneym).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82484/new/
https://reviews.llvm.org/D82484
Files:
llvm/test/tools/llvm-objcopy/ELF/common-symbol.test
llvm/tools/llvm-objcopy/ELF/Object.cpp
Index: llvm/tools/llvm-objcopy/ELF/Object.cpp
===================================================================
--- llvm/tools/llvm-objcopy/ELF/Object.cpp
+++ llvm/tools/llvm-objcopy/ELF/Object.cpp
@@ -608,6 +608,7 @@
if (Machine == EM_HEXAGON) {
switch (Index) {
case SHN_HEXAGON_SCOMMON:
+ case SHN_HEXAGON_SCOMMON_1:
case SHN_HEXAGON_SCOMMON_2:
case SHN_HEXAGON_SCOMMON_4:
case SHN_HEXAGON_SCOMMON_8:
Index: llvm/test/tools/llvm-objcopy/ELF/common-symbol.test
===================================================================
--- llvm/test/tools/llvm-objcopy/ELF/common-symbol.test
+++ llvm/test/tools/llvm-objcopy/ELF/common-symbol.test
@@ -11,10 +11,14 @@
Symbols:
- Name: test
Index: SHN_COMMON
+ Value: 0x1233
+ Binding: STB_GLOBAL
+ - Name: test1
+ Index: SHN_HEXAGON_SCOMMON
Value: 0x1234
Binding: STB_GLOBAL
- Name: test2
- Index: SHN_HEXAGON_SCOMMON
+ Index: SHN_HEXAGON_SCOMMON_1
Value: 0x1235
Binding: STB_GLOBAL
- Name: test3
@@ -42,7 +46,7 @@
#CHECK-NEXT: }
#CHECK-NEXT: Symbol {
#CHECK-NEXT: Name: test
-#CHECK-NEXT: Value: 0x1234
+#CHECK-NEXT: Value: 0x1233
#CHECK-NEXT: Size: 0
#CHECK-NEXT: Binding: Global (0x1)
#CHECK-NEXT: Type: None (0x0)
@@ -50,13 +54,22 @@
#CHECK-NEXT: Section: Common (0xFFF2)
#CHECK-NEXT: }
#CHECK-NEXT: Symbol {
+#CHECK-NEXT: Name: test1
+#CHECK-NEXT: Value: 0x1234
+#CHECK-NEXT: Size: 0
+#CHECK-NEXT: Binding: Global (0x1)
+#CHECK-NEXT: Type: None (0x0)
+#CHECK-NEXT: Other: 0
+#CHECK-NEXT: Section: Processor Specific (0xFF00)
+#CHECK-NEXT: }
+#CHECK-NEXT: Symbol {
#CHECK-NEXT: Name: test2
#CHECK-NEXT: Value: 0x1235
#CHECK-NEXT: Size: 0
#CHECK-NEXT: Binding: Global (0x1)
#CHECK-NEXT: Type: None (0x0)
#CHECK-NEXT: Other: 0
-#CHECK-NEXT: Section: Processor Specific (0xFF00)
+#CHECK-NEXT: Section: Processor Specific (0xFF01)
#CHECK-NEXT: }
#CHECK-NEXT: Symbol {
#CHECK-NEXT: Name: test3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82484.273206.patch
Type: text/x-patch
Size: 2057 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200625/133f36c4/attachment.bin>
More information about the llvm-commits
mailing list