forked from OSchip/llvm-project
Set the symbol size in the symbol table.
llvm-svn: 246086
This commit is contained in:
parent
034e2e7a8e
commit
e11c6d2d6f
|
@ -260,6 +260,7 @@ template <class ELFT> void SymbolTableSection<ELFT>::writeTo(uint8_t *Buf) {
|
|||
uint8_t Type = InputSym->getType();
|
||||
uint8_t Binding = InputSym->getBinding();
|
||||
ESym->setBindingAndType(Binding, Type);
|
||||
ESym->st_size = InputSym->st_size;
|
||||
}
|
||||
|
||||
if (Section) {
|
||||
|
|
|
@ -25,6 +25,7 @@ zed2:
|
|||
|
||||
.section foobar,"a",@nobits,unique,2
|
||||
.globl zed3
|
||||
.size zed3, 4
|
||||
zed3:
|
||||
|
||||
// CHECK: Name: .text
|
||||
|
@ -64,7 +65,7 @@ zed3:
|
|||
// CHECK-NEXT: Symbol {
|
||||
// CHECK-NEXT: Name: zed3
|
||||
// CHECK-NEXT: Value: 0x100C
|
||||
// CHECK-NEXT: Size: 0
|
||||
// CHECK-NEXT: Size: 4
|
||||
// CHECK-NEXT: Binding: Global
|
||||
// CHECK-NEXT: Type: None
|
||||
// CHECK-NEXT: Other: 0
|
||||
|
|
Loading…
Reference in New Issue