So basically when I am using objdump
and readelf
to disassemble some GNU Coreutils, I find a very weird situation like this:
readelf -s pr | grep bkm_scale
....
176: 08050620 118 FUNC LOCAL DEFAULT 13 bkm_scale
177: 080506a0 39 FUNC LOCAL DEFAULT 13 bkm_scale_by_power
181: 08050a60 173 FUNC LOCAL DEFAULT 13 bkm_scale
182: 08050b10 50 FUNC LOCAL DEFAULT 13 bkm_scale_by_power
and when I disassemble pr
using objdump
, I do see two definition of function bkm_scale
and bkm_scale_by_power
, and their disassembled asm code are different.
So does it indicate some disassemble error? If not, then why there are two FUNC
symbols have the same name?