Index: llvm/trunk/test/tools/llvm-nm/X86/posixELF.test =================================================================== --- llvm/trunk/test/tools/llvm-nm/X86/posixELF.test +++ llvm/trunk/test/tools/llvm-nm/X86/posixELF.test @@ -1,4 +1,4 @@ # RUN: llvm-nm -P %p/Inputs/hello.obj.elf-x86_64 | FileCheck %s -CHECK: main T 0 0 +CHECK: main T 0 15 CHECK: puts U 0 0 Index: llvm/trunk/test/tools/llvm-nm/X86/response-file.test =================================================================== --- llvm/trunk/test/tools/llvm-nm/X86/response-file.test +++ llvm/trunk/test/tools/llvm-nm/X86/response-file.test @@ -1,5 +1,5 @@ # RUN: echo "-P %p/Inputs/hello.obj.elf-x86_64" > %t-response # RUN: llvm-nm @%t-response | FileCheck %s -CHECK: main T 0 0 +CHECK: main T 0 15 CHECK: puts U 0 0 Index: llvm/trunk/tools/llvm-nm/llvm-nm.cpp =================================================================== --- llvm/trunk/tools/llvm-nm/llvm-nm.cpp +++ llvm/trunk/tools/llvm-nm/llvm-nm.cpp @@ -1190,10 +1190,8 @@ NMSymbol S = {}; S.Size = 0; S.Address = 0; - if (PrintSize) { - if (isa(&Obj)) - S.Size = ELFSymbolRef(Sym).getSize(); - } + if (isa(&Obj)) + S.Size = ELFSymbolRef(Sym).getSize(); if (PrintAddress && isa(Obj)) { SymbolRef SymRef(Sym); Expected AddressOrErr = SymRef.getAddress();