forked from OSchip/llvm-project
				
			[LLD][ELF]Fix tests for D56910
r351789 changes the output of llvm-readelf --dyn-symbols. This causes 3 LLD tests to break. This patch fixes them. Reviewed by: ruiu Differential Revision: https://reviews.llvm.org/D56911 llvm-svn: 351790
This commit is contained in:
		
							parent
							
								
									5fc812f176
								
							
						
					
					
						commit
						b88d6fd7b8
					
				| 
						 | 
					@ -10,9 +10,10 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# CHECK-NOT: libfoo
 | 
					# CHECK-NOT: libfoo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# CHECK:      Symbol table of .hash for image:
 | 
					# CHECK:      Symbol table '.dynsym' contains 2 entries:
 | 
				
			||||||
# CHECK-NEXT: Num Buc:    Value          Size   Type   Bind Vis      Ndx Name
 | 
					# CHECK-NEXT: Num:    Value          Size Type    Bind   Vis     Ndx Name
 | 
				
			||||||
# CHECK-NEXT:   1   1: 0000000000000000     0 FUNC    WEAK   DEFAULT UND foo
 | 
					# CHECK-NEXT:   0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT UND
 | 
				
			||||||
 | 
					# CHECK-NEXT:   1: 0000000000000000     0 FUNC    WEAK   DEFAULT UND foo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.globl _start
 | 
					.globl _start
 | 
				
			||||||
.weak foo
 | 
					.weak foo
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,8 +7,8 @@
 | 
				
			||||||
# We used to mark bar as absolute.
 | 
					# We used to mark bar as absolute.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# CHECK: .text             PROGBITS        0000000000001000
 | 
					# CHECK: .text             PROGBITS        0000000000001000
 | 
				
			||||||
# CHECK: 0000000000001001 0 NOTYPE  GLOBAL DEFAULT   4 foo
 | 
					 | 
				
			||||||
# CHECK: 0000000000001001 0 NOTYPE  GLOBAL DEFAULT   4 bar
 | 
					# CHECK: 0000000000001001 0 NOTYPE  GLOBAL DEFAULT   4 bar
 | 
				
			||||||
 | 
					# CHECK: 0000000000001001 0 NOTYPE  GLOBAL DEFAULT   4 foo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# The nop makes the test more interesting by making the offset of
 | 
					# The nop makes the test more interesting by making the offset of
 | 
				
			||||||
# text.f non zero.
 | 
					# text.f non zero.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -6,7 +6,7 @@
 | 
				
			||||||
# RUN: ld.lld -o %t --script %t.script %t.o %t2.so
 | 
					# RUN: ld.lld -o %t --script %t.script %t.o %t2.so
 | 
				
			||||||
# RUN: llvm-readelf --dyn-symbols %t | FileCheck  %s
 | 
					# RUN: llvm-readelf --dyn-symbols %t | FileCheck  %s
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# CHECK: 1 1: 000000000000002a 0 NOTYPE GLOBAL DEFAULT ABS foo
 | 
					# CHECK: 1: 000000000000002a 0 NOTYPE GLOBAL DEFAULT ABS foo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.global _start
 | 
					.global _start
 | 
				
			||||||
_start:
 | 
					_start:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue