diff options
author | Michael LeMay <michael.lemay@intel.com> | 2016-01-29 12:17:13 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-02-24 15:31:37 +0800 |
commit | 8686dac588656ebe5024e72ad93ec0b19615778f (patch) | |
tree | b36d67d8a8924dc568802aa9617b9619e824b009 /OptionRomPkg/OptionRomPkg.dsc | |
parent | 29bda2b678457618ddef33e4db827ba8340ef606 (diff) | |
download | edk2-platforms-8686dac588656ebe5024e72ad93ec0b19615778f.tar.xz |
BaseTools/GenFw: Enhance error message for bad symbol definitions
This patch expands the error message that is output when GenFw
encounters a bad symbol definition or an unsupported symbol type. It
displays the symbol name, the symbol address, and a message that
describes both possibilities (bad symbol definition or unsupported
symbol type). It also provides two examples of unsupported symbol
types.
Furthermore, this patch revises the conditional for detecting bad
symbol definitions to eliminate a redundant test (a Sym->st_shndx
value of SHN_ABS should certainly be greater than mEhdr->e_shnum) and
to change another test from 'Sym->st_shndx > mEhdr->e_shnum' to
'Sym->st_shndx >= mEhdr->e_shnum' for consistency with the test in
GetShdrByIndex.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael LeMay <michael.lemay@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
(cherry picked from commit 621bb723a4e00cb93e8a94c6126de4976dde1d9e)
Diffstat (limited to 'OptionRomPkg/OptionRomPkg.dsc')
0 files changed, 0 insertions, 0 deletions