base: load weak symbols from object file
authorDeyuan Guo ext:(%2C%20Nilay%20Vaish%20%3Cnilay%40cs.wisc.edu%3E) <guodeyuan@tsinghua.org.cn>
Wed, 17 Apr 2013 21:07:19 +0000 (16:07 -0500)
committerDeyuan Guo ext:(%2C%20Nilay%20Vaish%20%3Cnilay%40cs.wisc.edu%3E) <guodeyuan@tsinghua.org.cn>
Wed, 17 Apr 2013 21:07:19 +0000 (16:07 -0500)
commitb54e11862878cf88a427fa225407d1128abd21f2
tree66f09330565822fd9123de93feebd3718a7fbd69
parent3ff091bdf401113057c26cf1087cf0e872154265
base: load weak symbols from object file
Without loading weak symbols into gem5, some function names and the given PC
cannot correspond correctly, because the binding attributes of unction names
in an ELF file are not only STB_GLOBAL or STB_LOCAL, but also STB_WEAK. This
patch adds a function for loading weak symbols.

Committed by: Nilay Vaish <nilay@cs.wisc.edu>
src/base/loader/elf_object.cc
src/base/loader/elf_object.hh
src/base/loader/object_file.hh
src/sim/process.cc