Index: test/tools/llvm-nm/X86/posixELF.test =================================================================== --- test/tools/llvm-nm/X86/posixELF.test +++ 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: test/tools/llvm-nm/X86/response-file.test =================================================================== --- test/tools/llvm-nm/X86/response-file.test +++ 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: tools/llvm-nm/llvm-nm.cpp =================================================================== --- tools/llvm-nm/llvm-nm.cpp +++ tools/llvm-nm/llvm-nm.cpp @@ -1189,10 +1189,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();