]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools GenFw: Keep read only alloc section as text when convert ELF
authorgaoliming <gaoliming@byosoft.com.cn>
Wed, 16 Jun 2021 07:58:09 +0000 (15:58 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 16 Jun 2021 14:11:57 +0000 (14:11 +0000)
commit1b380aa603f53b6e4d29896057757f825531aee6
tree60f0b0d6b40c68fa1bae955a21d41d3d5acf2e78
parentab2b389e7afc19ca87574eb4594eaf26ca2d4135
BaseTools GenFw: Keep read only alloc section as text when convert ELF

This is the fix of the regression issue at c6b872c6.
Based on ELF spec, readonly alloc section is .rodata section. It is used.
This fix is to add back original check logic for ELF section. Now,
the readonly alloc section and execute alloc section are regarded as .text.

Signed-off-by: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/C/GenFw/Elf32Convert.c
BaseTools/Source/C/GenFw/Elf64Convert.c