mirror of https://github.com/acidanthera/audk.git
Add support for.sdata sections
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2013 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
2b37c802dc
commit
c6137cfd5d
|
@ -281,7 +281,7 @@ Returns:
|
||||||
goto Finish;
|
goto Finish;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp (SectionHeader.Name, ".data") == 0) {
|
if (strcmp (SectionHeader.Name, ".data") == 0 || strcmp (SectionHeader.Name, ".sdata") == 0) {
|
||||||
if (fseek (InFptr, SectionHeader.PointerToRawData, SEEK_SET) != 0) {
|
if (fseek (InFptr, SectionHeader.PointerToRawData, SEEK_SET) != 0) {
|
||||||
Error (NULL, 0, 0, InFileName, "failed to seek to .data section");
|
Error (NULL, 0, 0, InFileName, "failed to seek to .data section");
|
||||||
goto Finish;
|
goto Finish;
|
||||||
|
|
Loading…
Reference in New Issue