diff options
author | Michael LeMay <michael.lemay@intel.com> | 2016-01-29 12:17:13 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2016-02-17 13:21:44 +0800 |
commit | 621bb723a4e00cb93e8a94c6126de4976dde1d9e (patch) | |
tree | ab998c2dbd40ce7a90d31f9ed14c07f263048ffe /BaseTools/Source/Python/Ecc | |
parent | 17751c5fa473fd4f830007590d59e8d15a2d2935 (diff) | |
download | edk2-platforms-621bb723a4e00cb93e8a94c6126de4976dde1d9e.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>
Diffstat (limited to 'BaseTools/Source/Python/Ecc')
0 files changed, 0 insertions, 0 deletions