VirtualBox

Ignore:
Timestamp:
Aug 24, 2020 6:22:41 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140054
Message:

Devices/EFI/Firmware: improve alignment error messages in Elf64Convert.c, helps tracking down what's causing the alignment trouble

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/GenFw/Elf64Convert.c

    r85718 r85880  
    692692          mCoffOffset = (UINT32) ((mCoffOffset + shdr->sh_addralign - 1) & ~(shdr->sh_addralign - 1));
    693693        } else {
     694#ifdef VBOX
     695          Error (NULL, 0, 3000, "Invalid", "Section address not aligned to its own alignment. sec#%i addr=%#llx align=%#llx", i, shdr->sh_addr, shdr->sh_addralign);
     696#else
    694697          Error (NULL, 0, 3000, "Invalid", "Section address not aligned to its own alignment.");
     698#endif
    695699        }
    696700      }
     
    743747          mCoffOffset = (UINT32) ((mCoffOffset + shdr->sh_addralign - 1) & ~(shdr->sh_addralign - 1));
    744748        } else {
     749#ifdef VBOX
     750          Error (NULL, 0, 3000, "Invalid", "Section address not aligned to its own alignment. sec#%i addr=%#llx align=%#llx", i, shdr->sh_addr, shdr->sh_addralign);
     751#else
    745752          Error (NULL, 0, 3000, "Invalid", "Section address not aligned to its own alignment.");
     753#endif
    746754        }
    747755      }
     
    795803          mCoffOffset = (UINT32) ((mCoffOffset + shdr->sh_addralign - 1) & ~(shdr->sh_addralign - 1));
    796804        } else {
     805#ifdef VBOX
     806          Error (NULL, 0, 3000, "Invalid", "Section address not aligned to its own alignment. sec#%i addr=%#llx align=%#llx", i, shdr->sh_addr, shdr->sh_addralign);
     807#else
    797808          Error (NULL, 0, 3000, "Invalid", "Section address not aligned to its own alignment.");
     809#endif
    798810        }
    799811      }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette