Set the symbol size in the symbol table.

llvm-svn: 246086
This commit is contained in:
Rafael Espindola 2015-08-26 21:46:24 +00:00
parent 034e2e7a8e
commit e11c6d2d6f
2 changed files with 3 additions and 1 deletions

View File

@ -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) {

View File

@ -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